Polish
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user