Polishing

This commit is contained in:
Sam Brannen 2023-10-11 13:29:33 +02:00
parent 653a631df5
commit 00dde8bd88
7 changed files with 5 additions and 12 deletions

View File

@ -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 {
}
/**
* 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 {
}
}

View File

@ -24,4 +24,3 @@ package org.springframework.beans.testfixture.beans.factory.generator.deprecatio
@Deprecated
public class DeprecatedBean {
}

View File

@ -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) {
}
}

View File

@ -24,4 +24,3 @@ package org.springframework.beans.testfixture.beans.factory.generator.deprecatio
@Deprecated(forRemoval = true)
public class DeprecatedForRemovalBean {
}

View File

@ -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) {
}
}