From a8102e6a41beb0ca7c68ae907baaff0723b6ca86 Mon Sep 17 00:00:00 2001 From: Sam Brannen Date: Mon, 21 Jun 2021 18:31:43 +0200 Subject: [PATCH] Delete unused code in ConfigurationMethod --- .../context/annotation/ConfigurationMethod.java | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/spring-context/src/main/java/org/springframework/context/annotation/ConfigurationMethod.java b/spring-context/src/main/java/org/springframework/context/annotation/ConfigurationMethod.java index cf641dba63..6fd3ca169e 100644 --- a/spring-context/src/main/java/org/springframework/context/annotation/ConfigurationMethod.java +++ b/spring-context/src/main/java/org/springframework/context/annotation/ConfigurationMethod.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2018 the original author or authors. + * Copyright 2002-2021 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -51,18 +51,9 @@ abstract class ConfigurationMethod { return new Location(this.configurationClass.getResource(), this.metadata); } - String getFullyQualifiedMethodName() { - return this.metadata.getDeclaringClassName() + "#" + this.metadata.getMethodName(); + void validate(ProblemReporter problemReporter) { } - static String getShortMethodName(String fullyQualifiedMethodName) { - return fullyQualifiedMethodName.substring(fullyQualifiedMethodName.indexOf('#') + 1); - } - - public void validate(ProblemReporter problemReporter) { - } - - @Override public String toString() { return String.format("[%s:name=%s,declaringClass=%s]",