Merge pull request #49031 from quaff

* pr/49031:
  Members declared in final classes should not be protected

Closes gh-49031
This commit is contained in:
Stéphane Nicoll
2026-02-23 16:47:11 +01:00
5 changed files with 5 additions and 5 deletions
@@ -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;
@@ -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();
@@ -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;
}
@@ -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());
@@ -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));
}