Remove redundant modifiers

This commit is contained in:
Phillip Webb
2015-09-08 15:06:44 -07:00
parent 460ca75fce
commit e07df7e4c6
210 changed files with 325 additions and 325 deletions

View File

@@ -47,7 +47,7 @@ public class LaunchedURLClassLoader extends URLClassLoader {
* @param urls the URLs from which to load classes and resources
* @param parent the parent class loader for delegation
*/
public LaunchedURLClassLoader(URL[] urls, ClassLoader parent) {
LaunchedURLClassLoader(URL[] urls, ClassLoader parent) {
super(urls, parent);
this.rootClassLoader = findRootClassLoader(parent);
}
@@ -253,7 +253,7 @@ public class LaunchedURLClassLoader extends URLClassLoader {
private final Enumeration<URL> localResources;
public ResourceEnumeration(Enumeration<URL> rootResources,
ResourceEnumeration(Enumeration<URL> rootResources,
Enumeration<URL> localResources) {
this.rootResources = rootResources;
this.localResources = localResources;

View File

@@ -174,7 +174,7 @@ public class ExplodedArchive extends Archive {
private final File file;
public FileEntry(AsciiBytes name, File file) {
FileEntry(AsciiBytes name, File file) {
this.name = name;
this.file = file;
}
@@ -199,9 +199,6 @@ public class ExplodedArchive extends Archive {
*/
private class FilteredURLStreamHandler extends URLStreamHandler {
public FilteredURLStreamHandler() {
}
@Override
protected URLConnection openConnection(URL url) throws IOException {
String name = url.getPath().substring(
@@ -220,7 +217,7 @@ public class ExplodedArchive extends Archive {
private final String name;
public FileNotFoundURLConnection(URL url, String name) {
FileNotFoundURLConnection(URL url, String name) {
super(url);
this.name = name;
}

View File

@@ -168,7 +168,7 @@ public class JarFileArchive extends Archive {
private final JarEntryData entryData;
public JarFileEntry(JarEntryData entryData) {
JarFileEntry(JarEntryData entryData) {
this.entryData = entryData;
}

View File

@@ -126,7 +126,7 @@ public class RandomAccessDataFile implements RandomAccessData {
private int position;
public DataInputStream(ResourceAccess access) throws IOException {
DataInputStream(ResourceAccess access) throws IOException {
if (access == ResourceAccess.ONCE) {
this.file = new RandomAccessFile(RandomAccessDataFile.this.file, "r");
this.file.seek(RandomAccessDataFile.this.offset);
@@ -236,7 +236,7 @@ public class RandomAccessDataFile implements RandomAccessData {
private final Queue<RandomAccessFile> files;
public FilePool(int size) {
FilePool(int size) {
this.size = size;
this.available = new Semaphore(size);
this.files = new ConcurrentLinkedQueue<RandomAccessFile>();

View File

@@ -53,7 +53,7 @@ class CentralDirectoryEndRecord {
* @param data the source data
* @throws IOException
*/
public CentralDirectoryEndRecord(RandomAccessData data) throws IOException {
CentralDirectoryEndRecord(RandomAccessData data) throws IOException {
this.block = createBlockFromEndOfData(data, READ_BLOCK_SIZE);
this.size = MINIMUM_SIZE;
this.offset = this.block.length - this.size;

View File

@@ -217,7 +217,7 @@ class JarURLConnection extends java.net.JarURLConnection {
private String contentType;
public JarEntryName(String spec) {
JarEntryName(String spec) {
this.name = decode(spec);
}

View File

@@ -34,7 +34,7 @@ class ZipInflaterInputStream extends InflaterInputStream {
private int available;
public ZipInflaterInputStream(InputStream inputStream, int size) {
ZipInflaterInputStream(InputStream inputStream, int size) {
super(inputStream, new Inflater(true), getInflaterBufferSize(size));
this.available = size;
}

View File

@@ -104,7 +104,7 @@ public class ExecutableArchiveLauncherTests {
private static final class UnitTestExecutableArchiveLauncher extends
ExecutableArchiveLauncher {
public UnitTestExecutableArchiveLauncher(JavaAgentDetector javaAgentDetector) {
UnitTestExecutableArchiveLauncher(JavaAgentDetector javaAgentDetector) {
super(javaAgentDetector);
}

View File

@@ -90,7 +90,7 @@ public class OutputCapture implements TestRule {
private final OutputStream copy;
public CaptureOutputStream(PrintStream original, OutputStream copy) {
CaptureOutputStream(PrintStream original, OutputStream copy) {
this.original = original;
this.copy = copy;
}