Browse Source

Polishing

pull/31416/head
Sam Brannen 1 year ago
parent
commit
00dde8bd88
  1. 5
      spring-beans/src/main/java/org/springframework/beans/factory/aot/CodeWarnings.java
  2. 1
      spring-beans/src/testFixtures/java/org/springframework/beans/testfixture/beans/factory/generator/deprecation/DeprecatedBean.java
  3. 4
      spring-beans/src/testFixtures/java/org/springframework/beans/testfixture/beans/factory/generator/deprecation/DeprecatedConstructor.java
  4. 1
      spring-beans/src/testFixtures/java/org/springframework/beans/testfixture/beans/factory/generator/deprecation/DeprecatedForRemovalBean.java
  5. 4
      spring-beans/src/testFixtures/java/org/springframework/beans/testfixture/beans/factory/generator/deprecation/DeprecatedForRemovalConstructor.java
  6. 1
      spring-beans/src/testFixtures/java/org/springframework/beans/testfixture/beans/factory/generator/deprecation/DeprecatedForRemovalMemberConfiguration.java
  7. 1
      spring-beans/src/testFixtures/java/org/springframework/beans/testfixture/beans/factory/generator/deprecation/DeprecatedMemberConfiguration.java

5
spring-beans/src/main/java/org/springframework/beans/factory/aot/CodeWarnings.java

@ -33,12 +33,14 @@ import org.springframework.lang.Nullable; @@ -33,12 +33,14 @@ import org.springframework.lang.Nullable;
* generated code.
*
* @author Stephane Nicoll
* @since 6.1
* @see SuppressWarnings
*/
class CodeWarnings {
private final Set<String> 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 { @@ -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 { @@ -122,4 +124,3 @@ class CodeWarnings {
}
}

1
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 @@ -24,4 +24,3 @@ package org.springframework.beans.testfixture.beans.factory.generator.deprecatio
@Deprecated
public class DeprecatedBean {
}

4
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 @@ -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 { @@ -27,8 +27,6 @@ public class DeprecatedConstructor {
@Deprecated
public DeprecatedConstructor(Environment environment) {
}
}

1
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 @@ -24,4 +24,3 @@ package org.springframework.beans.testfixture.beans.factory.generator.deprecatio
@Deprecated(forRemoval = true)
public class DeprecatedForRemovalBean {
}

4
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 @@ -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 { @@ -27,8 +27,6 @@ public class DeprecatedForRemovalConstructor {
@Deprecated(forRemoval = true)
public DeprecatedForRemovalConstructor(Environment environment) {
}
}

1
spring-beans/src/testFixtures/java/org/springframework/beans/testfixture/beans/factory/generator/deprecation/DeprecatedForRemovalMemberConfiguration.java

@ -33,4 +33,3 @@ public class DeprecatedForRemovalMemberConfiguration { @@ -33,4 +33,3 @@ public class DeprecatedForRemovalMemberConfiguration {
}
}

1
spring-beans/src/testFixtures/java/org/springframework/beans/testfixture/beans/factory/generator/deprecation/DeprecatedMemberConfiguration.java

@ -37,4 +37,3 @@ public class DeprecatedMemberConfiguration { @@ -37,4 +37,3 @@ public class DeprecatedMemberConfiguration {
}
}

Loading…
Cancel
Save