mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-09-17 20:19:06 +00:00
Members declared in final classes should not be protected
See gh-49031 Signed-off-by: Yanming Zhou <zhouyanming@gmail.com>
This commit is contained in:
committed by
Stéphane Nicoll
parent
4bc47d0919
commit
147d3d763b
@@ -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;
|
||||
|
||||
|
||||
+1
-1
@@ -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();
|
||||
|
||||
+1
-1
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -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());
|
||||
|
||||
+1
-1
@@ -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));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user