This commit is contained in:
Stephane Nicoll
2020-08-06 15:50:51 +02:00
parent 8b3f8a6138
commit dac63fc3e5
108 changed files with 185 additions and 172 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2012-2019 the original author or authors.
* Copyright 2012-2020 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -28,7 +28,7 @@ import java.util.Locale;
*/
public final class ItemMetadata implements Comparable<ItemMetadata> {
private ItemType itemType;
private final ItemType itemType;
private String name;

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2012-2019 the original author or authors.
* Copyright 2012-2020 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -28,7 +28,7 @@ import org.springframework.boot.configurationsample.NestedConfigurationProperty;
public class ComplexGenericProperties {
@NestedConfigurationProperty
private UpperBoundGenericPojo<Test> test = new UpperBoundGenericPojo<>();
private final UpperBoundGenericPojo<Test> test = new UpperBoundGenericPojo<>();
public UpperBoundGenericPojo<Test> getTest() {
return this.test;

View File

@@ -29,7 +29,7 @@ import org.springframework.boot.configurationsample.Name;
@ConstructorBinding
public class ImmutableNameAnnotationProperties {
private String imports;
private final String imports;
public ImmutableNameAnnotationProperties(@Name("import") String imports) {
this.imports = imports;