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;
|
||||
|
||||
@@ -40,7 +40,7 @@ class Context {
|
||||
|
||||
private final File workingDir;
|
||||
|
||||
private String relativeDir;
|
||||
private final String relativeDir;
|
||||
|
||||
/**
|
||||
* Create a new {@link Context} instance.
|
||||
|
||||
@@ -165,7 +165,7 @@ class CentralDirectoryEndRecord {
|
||||
|
||||
private final long centralDirectoryLength;
|
||||
|
||||
private int numberOfRecords;
|
||||
private final int numberOfRecords;
|
||||
|
||||
private Zip64End(RandomAccessData data, int centralDirectoryEndOffset) throws IOException {
|
||||
this(data, new Zip64Locator(data, centralDirectoryEndOffset));
|
||||
|
||||
Reference in New Issue
Block a user