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

@@ -36,7 +36,7 @@ class FileWatchingFailureHandler implements FailureHandler {
private final FileSystemWatcherFactory fileSystemWatcherFactory;
public FileWatchingFailureHandler(FileSystemWatcherFactory fileSystemWatcherFactory) {
FileWatchingFailureHandler(FileSystemWatcherFactory fileSystemWatcherFactory) {
this.fileSystemWatcherFactory = fileSystemWatcherFactory;
}
@@ -62,7 +62,7 @@ class FileWatchingFailureHandler implements FailureHandler {
private final CountDownLatch latch;
public Listener(CountDownLatch latch) {
Listener(CountDownLatch latch) {
this.latch = latch;
}

View File

@@ -47,7 +47,7 @@ class ClassPathFileChangeListener implements FileChangeListener {
* @param fileSystemWatcherToStop the file system watcher to stop on a restart (or
* {@code null})
*/
public ClassPathFileChangeListener(ApplicationEventPublisher eventPublisher,
ClassPathFileChangeListener(ApplicationEventPublisher eventPublisher,
ClassPathRestartStrategy restartStrategy,
FileSystemWatcher fileSystemWatcherToStop) {
Assert.notNull(eventPublisher, "EventPublisher must not be null");

View File

@@ -35,7 +35,7 @@ class FileSnapshot {
private final long lastModified;
public FileSnapshot(File file) {
FileSnapshot(File file) {
Assert.notNull(file, "File must not be null");
Assert.isTrue(file.isFile() || !file.exists(), "File must not be a folder");
this.file = file;

View File

@@ -50,7 +50,7 @@ class FolderSnapshot {
* Create a new {@link FolderSnapshot} for the given folder.
* @param folder the source folder
*/
public FolderSnapshot(File folder) {
FolderSnapshot(File folder) {
Assert.notNull(folder, "Folder must not be null");
Assert.isTrue(folder.isDirectory(), "Folder must not be a file");
this.folder = folder;

View File

@@ -60,7 +60,7 @@ class Connection {
* @param outputStream the socket output stream
* @throws IOException
*/
public Connection(Socket socket, InputStream inputStream, OutputStream outputStream)
Connection(Socket socket, InputStream inputStream, OutputStream outputStream)
throws IOException {
this.socket = socket;
this.inputStream = new ConnectionInputStream(inputStream);

View File

@@ -25,7 +25,7 @@ import java.io.IOException;
*/
class ConnectionClosedException extends IOException {
public ConnectionClosedException() {
ConnectionClosedException() {
super("Connection closed");
}

View File

@@ -31,7 +31,7 @@ class ConnectionInputStream extends FilterInputStream {
private static final int BUFFER_SIZE = 4096;
public ConnectionInputStream(InputStream in) {
ConnectionInputStream(InputStream in) {
super(in);
}

View File

@@ -30,7 +30,7 @@ import org.springframework.util.FileCopyUtils;
*/
class ConnectionOutputStream extends FilterOutputStream {
public ConnectionOutputStream(OutputStream out) {
ConnectionOutputStream(OutputStream out) {
super(out);
}

View File

@@ -39,19 +39,19 @@ class Frame {
* payload.
* @param payload the text payload
*/
public Frame(String payload) {
Frame(String payload) {
Assert.notNull(payload, "Payload must not be null");
this.type = Type.TEXT;
this.payload = payload.getBytes();
}
public Frame(Type type) {
Frame(Type type) {
Assert.notNull(type, "Type must not be null");
this.type = type;
this.payload = NO_BYTES;
}
private Frame(Type type, byte[] payload) {
Frame(Type type, byte[] payload) {
this.type = type;
this.payload = payload;
}
@@ -141,7 +141,7 @@ class Frame {
private final int code;
private Type(int code) {
Type(int code) {
this.code = code;
}

View File

@@ -248,7 +248,7 @@ public class LiveReloadServer {
private final InputStream inputStream;
public ConnectionHandler(Socket socket) throws IOException {
ConnectionHandler(Socket socket) throws IOException {
this.socket = socket;
this.inputStream = socket.getInputStream();
}

View File

@@ -58,7 +58,7 @@ class DelayedLiveReloadTrigger implements Runnable {
private long timeout = TIMEOUT;
public DelayedLiveReloadTrigger(OptionalLiveReloadServer liveReloadServer,
DelayedLiveReloadTrigger(OptionalLiveReloadServer liveReloadServer,
ClientHttpRequestFactory requestFactory, String url) {
Assert.notNull(liveReloadServer, "LiveReloadServer must not be null");
Assert.notNull(requestFactory, "RequestFactory must not be null");

View File

@@ -30,11 +30,11 @@ class MainMethod {
private final Method method;
public MainMethod() {
MainMethod() {
this(Thread.currentThread());
}
public MainMethod(Thread thread) {
MainMethod(Thread thread) {
Assert.notNull(thread, "Thread must not be null");
this.method = getMainMethod(thread);
}

View File

@@ -31,7 +31,7 @@ class RestartLauncher extends Thread {
private Throwable error;
public RestartLauncher(ClassLoader classLoader, String mainClassName, String[] args,
RestartLauncher(ClassLoader classLoader, String mainClassName, String[] args,
UncaughtExceptionHandler exceptionHandler) {
this.mainClassName = mainClassName;
this.args = args;

View File

@@ -558,7 +558,7 @@ public class Restarter {
private Object result;
public LeakSafeThread() {
LeakSafeThread() {
setDaemon(false);
}

View File

@@ -27,7 +27,7 @@ class SilentExitExceptionHandler implements UncaughtExceptionHandler {
private final UncaughtExceptionHandler delegate;
public SilentExitExceptionHandler(UncaughtExceptionHandler delegate) {
SilentExitExceptionHandler(UncaughtExceptionHandler delegate) {
this.delegate = delegate;
}

View File

@@ -32,7 +32,7 @@ class ClassLoaderFileURLStreamHandler extends URLStreamHandler {
private ClassLoaderFile file;
public ClassLoaderFileURLStreamHandler(ClassLoaderFile file) {
ClassLoaderFileURLStreamHandler(ClassLoaderFile file) {
this.file = file;
}
@@ -43,7 +43,7 @@ class ClassLoaderFileURLStreamHandler extends URLStreamHandler {
private class Connection extends URLConnection {
public Connection(URL url) {
Connection(URL url) {
super(url);
}

View File

@@ -206,7 +206,7 @@ public class RestartClassLoader extends URLClassLoader implements SmartClassLoad
private final Enumeration<E> enumeration;
public CompoundEnumeration(E firstElement, Enumeration<E> enumeration) {
CompoundEnumeration(E firstElement, Enumeration<E> enumeration) {
this.firstElement = firstElement;
this.enumeration = enumeration;
}

View File

@@ -192,7 +192,7 @@ public class TunnelClient implements SmartInitializingSingleton {
private boolean closed = false;
public SocketCloseable(SocketChannel socketChannel) {
SocketCloseable(SocketChannel socketChannel) {
this.socketChannel = socketChannel;
}

View File

@@ -70,7 +70,7 @@ public class SocketTargetServerConnection implements TargetServerConnection {
private final ReadableByteChannel readChannel;
public TimeoutAwareChannel(SocketChannel socketChannel) throws IOException {
TimeoutAwareChannel(SocketChannel socketChannel) throws IOException {
this.socketChannel = socketChannel;
this.readChannel = Channels.newChannel(socketChannel.socket()
.getInputStream());