Browse Source

Members declared in final classes should not be protected

See gh-49031

Signed-off-by: Yanming Zhou <zhouyanming@gmail.com>
pull/49366/head
Yanming Zhou 1 month ago committed by Stéphane Nicoll
parent
commit
147d3d763b
  1. 2
      buildSrc/src/main/java/org/springframework/boot/build/bom/BomResolver.java
  2. 2
      spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/info/ProjectInfoAutoConfiguration.java
  3. 2
      spring-boot-project/spring-boot-test/src/main/java/org/springframework/boot/test/util/TestPropertyValues.java
  4. 2
      spring-boot-project/spring-boot-tools/spring-boot-loader-tools/src/main/java/org/springframework/boot/loader/tools/BuildPropertiesWriter.java
  5. 2
      spring-boot-project/spring-boot/src/main/java/org/springframework/boot/logging/log4j2/ColorConverter.java

2
buildSrc/src/main/java/org/springframework/boot/build/bom/BomResolver.java

@ -199,7 +199,7 @@ class BomResolver { @@ -199,7 +199,7 @@ class BomResolver {
private static final class Node {
protected final XPath xpath;
private final XPath xpath;
private final org.w3c.dom.Node delegate;

2
spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/info/ProjectInfoAutoConfiguration.java

@ -73,7 +73,7 @@ public class ProjectInfoAutoConfiguration { @@ -73,7 +73,7 @@ public class ProjectInfoAutoConfiguration {
loadFrom(this.properties.getBuild().getLocation(), "build", this.properties.getBuild().getEncoding()));
}
protected Properties loadFrom(Resource location, String prefix, Charset encoding) throws IOException {
private Properties loadFrom(Resource location, String prefix, Charset encoding) throws IOException {
prefix = prefix.endsWith(".") ? prefix : prefix + ".";
Properties source = loadSource(location, encoding);
Properties target = new Properties();

2
spring-boot-project/spring-boot-test/src/main/java/org/springframework/boot/test/util/TestPropertyValues.java

@ -308,7 +308,7 @@ public final class TestPropertyValues { @@ -308,7 +308,7 @@ public final class TestPropertyValues {
return this.sourceClass;
}
protected String applySuffix(String name) {
private String applySuffix(String name) {
return (this.suffix != null) ? name + "-" + this.suffix : name;
}

2
spring-boot-project/spring-boot-tools/spring-boot-loader-tools/src/main/java/org/springframework/boot/loader/tools/BuildPropertiesWriter.java

@ -71,7 +71,7 @@ public final class BuildPropertiesWriter { @@ -71,7 +71,7 @@ public final class BuildPropertiesWriter {
}
}
protected Properties createBuildInfo(ProjectDetails project) {
private Properties createBuildInfo(ProjectDetails project) {
Properties properties = CollectionFactory.createSortedProperties(true);
addIfHasValue(properties, "build.group", project.getGroup());
addIfHasValue(properties, "build.artifact", project.getArtifact());

2
spring-boot-project/spring-boot/src/main/java/org/springframework/boot/logging/log4j2/ColorConverter.java

@ -109,7 +109,7 @@ public final class ColorConverter extends LogEventPatternConverter { @@ -109,7 +109,7 @@ public final class ColorConverter extends LogEventPatternConverter {
}
}
protected void appendAnsiString(StringBuilder toAppendTo, String in, AnsiElement element) {
private void appendAnsiString(StringBuilder toAppendTo, String in, AnsiElement element) {
toAppendTo.append(AnsiOutput.toString(element, in));
}

Loading…
Cancel
Save