This commit is contained in:
Phillip Webb
2020-04-07 12:10:49 -07:00
parent 1640add8be
commit 3ca896e63f
28 changed files with 66 additions and 73 deletions

View File

@@ -30,6 +30,7 @@ public class GenericBuilderProperties<T extends GenericBuilderProperties<T>> {
return this.number;
}
@SuppressWarnings("unchecked")
public T setNumber(int number) {
this.number = number;
return (T) this;

View File

@@ -24,6 +24,7 @@ import org.springframework.boot.configurationsample.ConfigurationProperties;
*
* @author Stephane Nicoll
*/
@SuppressWarnings("unused")
public class SingleConstructorMethodConfig {
@ConfigurationProperties(prefix = "foo")

View File

@@ -24,6 +24,7 @@ import org.springframework.boot.configurationsample.MetaConstructorBinding;
* @author Stephane Nicoll
*/
@MetaConstructorBinding
@SuppressWarnings("unused")
public class TwoConstructorsClassConstructorBindingExample {
private String name;