Remove "final" keywords

Closes gh-11294
This commit is contained in:
Johnny Lim
2017-12-08 22:29:03 +09:00
committed by Stephane Nicoll
parent bd7bd6edc8
commit 6d54072e04
48 changed files with 60 additions and 60 deletions

View File

@@ -240,7 +240,7 @@ public class Restarter {
* Restart the running application.
* @param failureHandler a failure handler to deal with application that doesn't start
*/
public void restart(final FailureHandler failureHandler) {
public void restart(FailureHandler failureHandler) {
if (!this.enabled) {
this.logger.debug("Application restart is disabled");
return;
@@ -382,7 +382,7 @@ public class Restarter {
memory.add(new long[102400]);
}
}
catch (final OutOfMemoryError ex) {
catch (OutOfMemoryError ex) {
// Expected
}
}
@@ -439,7 +439,7 @@ public class Restarter {
}
}
public Object getOrAddAttribute(final String name,
public Object getOrAddAttribute(String name,
final ObjectFactory<?> objectFactory) {
synchronized (this.attributes) {
if (!this.attributes.containsKey(name)) {
@@ -630,7 +630,7 @@ public class Restarter {
private class LeakSafeThreadFactory implements ThreadFactory {
@Override
public Thread newThread(final Runnable runnable) {
public Thread newThread(Runnable runnable) {
return getLeakSafeThread().callAndWait(() -> {
Thread thread = new Thread(runnable);
thread.setContextClassLoader(Restarter.this.applicationClassLoader);

View File

@@ -118,7 +118,7 @@ public class RestartClassLoader extends URLClassLoader implements SmartClassLoad
}
@Override
public URL findResource(final String name) {
public URL findResource(String name) {
final ClassLoaderFile file = this.updatedFiles.getFile(name);
if (file == null) {
return super.findResource(name);
@@ -154,7 +154,7 @@ public class RestartClassLoader extends URLClassLoader implements SmartClassLoad
}
@Override
protected Class<?> findClass(final String name) throws ClassNotFoundException {
protected Class<?> findClass(String name) throws ClassNotFoundException {
String path = name.replace('.', '/').concat(".class");
final ClassLoaderFile file = this.updatedFiles.getFile(path);
if (file == null) {

View File

@@ -147,7 +147,7 @@ public class HttpTunnelConnection implements TunnelConnection {
return size;
}
private void openNewConnection(final HttpTunnelPayload payload) {
private void openNewConnection(HttpTunnelPayload payload) {
HttpTunnelConnection.this.executor.execute(new Runnable() {
@Override

View File

@@ -43,7 +43,7 @@ public class MockRestarter implements TestRule {
private Restarter mock = mock(Restarter.class);
@Override
public Statement apply(final Statement base, Description description) {
public Statement apply(Statement base, Description description) {
return new Statement() {
@Override