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:
@@ -152,7 +152,7 @@ class BootZipCopyAction implements CopyAction {
|
||||
this.outputStream = outputStream;
|
||||
}
|
||||
|
||||
public void process(FileCopyDetails details) {
|
||||
void process(FileCopyDetails details) {
|
||||
if (BootZipCopyAction.this.exclusions.isSatisfiedBy(details)
|
||||
|| (this.writtenLoaderEntries != null && this.writtenLoaderEntries.isSatisfiedBy(details))) {
|
||||
return;
|
||||
@@ -171,7 +171,7 @@ class BootZipCopyAction implements CopyAction {
|
||||
}
|
||||
}
|
||||
|
||||
public void finish() throws IOException {
|
||||
void finish() throws IOException {
|
||||
writeLoaderEntriesIfNecessary(null);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2012-2018 the original author or authors.
|
||||
* Copyright 2012-2019 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.
|
||||
@@ -44,7 +44,7 @@ class LoaderZipEntries {
|
||||
this.entryTime = entryTime;
|
||||
}
|
||||
|
||||
public Spec<FileTreeElement> writeTo(ZipArchiveOutputStream zipOutputStream) throws IOException {
|
||||
Spec<FileTreeElement> writeTo(ZipArchiveOutputStream zipOutputStream) throws IOException {
|
||||
WrittenDirectoriesSpec writtenDirectoriesSpec = new WrittenDirectoriesSpec();
|
||||
try (ZipInputStream loaderJar = new ZipInputStream(
|
||||
getClass().getResourceAsStream("/META-INF/loader/spring-boot-loader.jar"))) {
|
||||
@@ -107,7 +107,7 @@ class LoaderZipEntries {
|
||||
return this.entries.contains(path);
|
||||
}
|
||||
|
||||
public void add(ZipEntry entry) {
|
||||
void add(ZipEntry entry) {
|
||||
this.entries.add(entry.getName());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user