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:
@@ -389,7 +389,7 @@ public class JarWriter implements LoaderClassesWriter, AutoCloseable {
|
||||
return read;
|
||||
}
|
||||
|
||||
public boolean hasZipHeader() {
|
||||
boolean hasZipHeader() {
|
||||
return Arrays.equals(this.header, ZIP_HEADER);
|
||||
}
|
||||
|
||||
@@ -431,7 +431,7 @@ public class JarWriter implements LoaderClassesWriter, AutoCloseable {
|
||||
}
|
||||
}
|
||||
|
||||
public void setupStoredEntry(JarArchiveEntry entry) {
|
||||
void setupStoredEntry(JarArchiveEntry entry) {
|
||||
entry.setSize(this.size);
|
||||
entry.setCompressedSize(this.size);
|
||||
entry.setCrc(this.crc.getValue());
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2012-2017 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.
|
||||
@@ -40,7 +40,7 @@ public abstract class LogbackInitializer {
|
||||
|
||||
private static class Initializer {
|
||||
|
||||
public void setRootLogLevel() {
|
||||
void setRootLogLevel() {
|
||||
ILoggerFactory factory = StaticLoggerBinder.getSingleton().getLoggerFactory();
|
||||
Logger logger = factory.getLogger(Logger.ROOT_LOGGER_NAME);
|
||||
((ch.qos.logback.classic.Logger) logger).setLevel(Level.INFO);
|
||||
|
||||
Reference in New Issue
Block a user