Unify method visibility of private classes

Apply checkstyle rule to ensure that private and package private
classes do not have unnecessary public methods. Test classes have
also been unified as much as possible to use default scoped
inner-classes.

Closes gh-7316
This commit is contained in:
Phillip Webb
2019-07-01 12:29:51 -07:00
parent 0a02a3a19c
commit a66c4d3096
910 changed files with 3754 additions and 3945 deletions

View File

@@ -63,7 +63,7 @@ abstract class AbstractApplicationLauncher implements BeforeEachCallback, AfterE
this.process = startApplication();
}
public final int getHttpPort() {
final int getHttpPort() {
return this.httpPort;
}

View File

@@ -38,7 +38,7 @@ final class Versions {
private Versions() {
}
public static String getBootVersion() {
static String getBootVersion() {
String baseDir = StringUtils.cleanPath(new File(".").getAbsolutePath());
String mainBaseDir = evaluateExpression("pom.xml", PROPERTIES + "/*[local-name()='main.basedir']/text()");
mainBaseDir = mainBaseDir.replace("${basedir}", baseDir);