Polishing
This commit is contained in:
parent
653a631df5
commit
00dde8bd88
|
|
@ -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 {
|
|||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -24,4 +24,3 @@ package org.springframework.beans.testfixture.beans.factory.generator.deprecatio
|
|||
@Deprecated
|
||||
public class DeprecatedBean {
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -24,4 +24,3 @@ package org.springframework.beans.testfixture.beans.factory.generator.deprecatio
|
|||
@Deprecated(forRemoval = true)
|
||||
public class DeprecatedForRemovalBean {
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -33,4 +33,3 @@ public class DeprecatedForRemovalMemberConfiguration {
|
|||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -37,4 +37,3 @@ public class DeprecatedMemberConfiguration {
|
|||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue