Polish modifier declaration ordering

Follow that Java language specification.
This commit is contained in:
Phillip Webb
2018-05-02 15:07:35 -07:00
parent 64930d4e5b
commit 4e96587dc8
26 changed files with 31 additions and 31 deletions

View File

@@ -43,7 +43,7 @@ class Connection {
private static final Pattern WEBSOCKET_KEY_PATTERN = Pattern
.compile("^Sec-WebSocket-Key:(.*)$", Pattern.MULTILINE);
public final static String WEBSOCKET_GUID = "258EAFA5-E914-47DA-95CA-C5AB0DC85B11";
public static final String WEBSOCKET_GUID = "258EAFA5-E914-47DA-95CA-C5AB0DC85B11";
private final Socket socket;

View File

@@ -606,7 +606,7 @@ public class Restarter {
* Set the restarter instance (useful for testing).
* @param instance the instance to set
*/
final static void setInstance(Restarter instance) {
static final void setInstance(Restarter instance) {
synchronized (INSTANCE_MONITOR) {
Restarter.instance = instance;
}

View File

@@ -91,9 +91,9 @@ public class RestartClassLoader extends URLClassLoader implements SmartClassLoad
}
Method classLoadingLockMethod = ReflectionUtils.findMethod(ClassLoader.class,
"getClassLoadingLock", String.class);
this.classLoadingLockSupplier = classLoadingLockMethod != null
? new StandardClassLoadingLockSupplier()
: new Java6ClassLoadingLockSupplier();
this.classLoadingLockSupplier = (classLoadingLockMethod != null
? new StandardClassLoadingLockSupplier()
: new Java6ClassLoadingLockSupplier());
}
@Override

View File

@@ -45,7 +45,7 @@ public class HttpTunnelPayload {
private static final int BUFFER_SIZE = 1024 * 100;
final protected static char[] HEX_CHARS = "0123456789ABCDEF".toCharArray();
protected static final char[] HEX_CHARS = "0123456789ABCDEF".toCharArray();
private static final Log logger = LogFactory.getLog(HttpTunnelPayload.class);

View File

@@ -76,7 +76,7 @@ public class SilentExitExceptionHandlerTests {
}
private static abstract class TestThread extends Thread {
private abstract static class TestThread extends Thread {
private Throwable thrown;