diff --git a/spring-beans/src/main/java/org/springframework/beans/factory/aot/CodeWarnings.java b/spring-beans/src/main/java/org/springframework/beans/factory/aot/CodeWarnings.java index 9912f44519..ba0de5056e 100644 --- a/spring-beans/src/main/java/org/springframework/beans/factory/aot/CodeWarnings.java +++ b/spring-beans/src/main/java/org/springframework/beans/factory/aot/CodeWarnings.java @@ -33,12 +33,14 @@ import org.springframework.lang.Nullable; * generated code. * * @author Stephane Nicoll + * @since 6.1 * @see SuppressWarnings */ class CodeWarnings { private final Set warnings = new LinkedHashSet<>(); + /** * Register a warning to be included for this block. Does nothing if * the warning is already registered. @@ -71,7 +73,7 @@ class CodeWarnings { } /** - * Include a {@link SuppressWarnings} on the specified method if necessary. + * Include {@link SuppressWarnings} on the specified method if necessary. * @param method the method to update */ public void suppress(MethodSpec.Builder method) { @@ -122,4 +124,3 @@ class CodeWarnings { } } - diff --git a/spring-beans/src/testFixtures/java/org/springframework/beans/testfixture/beans/factory/generator/deprecation/DeprecatedBean.java b/spring-beans/src/testFixtures/java/org/springframework/beans/testfixture/beans/factory/generator/deprecation/DeprecatedBean.java index 7cad80f3ff..43ca2a4745 100644 --- a/spring-beans/src/testFixtures/java/org/springframework/beans/testfixture/beans/factory/generator/deprecation/DeprecatedBean.java +++ b/spring-beans/src/testFixtures/java/org/springframework/beans/testfixture/beans/factory/generator/deprecation/DeprecatedBean.java @@ -24,4 +24,3 @@ package org.springframework.beans.testfixture.beans.factory.generator.deprecatio @Deprecated public class DeprecatedBean { } - diff --git a/spring-beans/src/testFixtures/java/org/springframework/beans/testfixture/beans/factory/generator/deprecation/DeprecatedConstructor.java b/spring-beans/src/testFixtures/java/org/springframework/beans/testfixture/beans/factory/generator/deprecation/DeprecatedConstructor.java index ca4ca987cb..bd2489ec61 100644 --- a/spring-beans/src/testFixtures/java/org/springframework/beans/testfixture/beans/factory/generator/deprecation/DeprecatedConstructor.java +++ b/spring-beans/src/testFixtures/java/org/springframework/beans/testfixture/beans/factory/generator/deprecation/DeprecatedConstructor.java @@ -19,7 +19,7 @@ package org.springframework.beans.testfixture.beans.factory.generator.deprecatio import org.springframework.core.env.Environment; /** - * A sample whose factory method (constructor) is deprecated. + * A sample bean whose factory method (constructor) is deprecated. * * @author Stephane Nicoll */ @@ -27,8 +27,6 @@ public class DeprecatedConstructor { @Deprecated public DeprecatedConstructor(Environment environment) { - } } - diff --git a/spring-beans/src/testFixtures/java/org/springframework/beans/testfixture/beans/factory/generator/deprecation/DeprecatedForRemovalBean.java b/spring-beans/src/testFixtures/java/org/springframework/beans/testfixture/beans/factory/generator/deprecation/DeprecatedForRemovalBean.java index cb11be7017..7f07540fb3 100644 --- a/spring-beans/src/testFixtures/java/org/springframework/beans/testfixture/beans/factory/generator/deprecation/DeprecatedForRemovalBean.java +++ b/spring-beans/src/testFixtures/java/org/springframework/beans/testfixture/beans/factory/generator/deprecation/DeprecatedForRemovalBean.java @@ -24,4 +24,3 @@ package org.springframework.beans.testfixture.beans.factory.generator.deprecatio @Deprecated(forRemoval = true) public class DeprecatedForRemovalBean { } - diff --git a/spring-beans/src/testFixtures/java/org/springframework/beans/testfixture/beans/factory/generator/deprecation/DeprecatedForRemovalConstructor.java b/spring-beans/src/testFixtures/java/org/springframework/beans/testfixture/beans/factory/generator/deprecation/DeprecatedForRemovalConstructor.java index 7b4047e2e0..1e3599c8da 100644 --- a/spring-beans/src/testFixtures/java/org/springframework/beans/testfixture/beans/factory/generator/deprecation/DeprecatedForRemovalConstructor.java +++ b/spring-beans/src/testFixtures/java/org/springframework/beans/testfixture/beans/factory/generator/deprecation/DeprecatedForRemovalConstructor.java @@ -19,7 +19,7 @@ package org.springframework.beans.testfixture.beans.factory.generator.deprecatio import org.springframework.core.env.Environment; /** - * A sample whose factory method (constructor) is deprecated for removal + * A sample bean whose factory method (constructor) is deprecated for removal. * * @author Stephane Nicoll */ @@ -27,8 +27,6 @@ public class DeprecatedForRemovalConstructor { @Deprecated(forRemoval = true) public DeprecatedForRemovalConstructor(Environment environment) { - } } - diff --git a/spring-beans/src/testFixtures/java/org/springframework/beans/testfixture/beans/factory/generator/deprecation/DeprecatedForRemovalMemberConfiguration.java b/spring-beans/src/testFixtures/java/org/springframework/beans/testfixture/beans/factory/generator/deprecation/DeprecatedForRemovalMemberConfiguration.java index 577fbf83ac..4ec5151f6c 100644 --- a/spring-beans/src/testFixtures/java/org/springframework/beans/testfixture/beans/factory/generator/deprecation/DeprecatedForRemovalMemberConfiguration.java +++ b/spring-beans/src/testFixtures/java/org/springframework/beans/testfixture/beans/factory/generator/deprecation/DeprecatedForRemovalMemberConfiguration.java @@ -33,4 +33,3 @@ public class DeprecatedForRemovalMemberConfiguration { } } - diff --git a/spring-beans/src/testFixtures/java/org/springframework/beans/testfixture/beans/factory/generator/deprecation/DeprecatedMemberConfiguration.java b/spring-beans/src/testFixtures/java/org/springframework/beans/testfixture/beans/factory/generator/deprecation/DeprecatedMemberConfiguration.java index 96ca7add31..48da050d70 100644 --- a/spring-beans/src/testFixtures/java/org/springframework/beans/testfixture/beans/factory/generator/deprecation/DeprecatedMemberConfiguration.java +++ b/spring-beans/src/testFixtures/java/org/springframework/beans/testfixture/beans/factory/generator/deprecation/DeprecatedMemberConfiguration.java @@ -37,4 +37,3 @@ public class DeprecatedMemberConfiguration { } } -