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

@@ -108,7 +108,7 @@ public class JarWriter implements LoaderClassesWriter, AutoCloseable {
* @param manifest the manifest to write
* @throws IOException of the manifest cannot be written
*/
public void writeManifest(final Manifest manifest) throws IOException {
public void writeManifest(Manifest manifest) throws IOException {
JarArchiveEntry entry = new JarArchiveEntry("META-INF/MANIFEST.MF");
writeEntry(entry, manifest::write);
}

View File

@@ -37,7 +37,7 @@ public final class SignalUtils {
* Handle {@literal INT} signals by calling the specified {@link Runnable}.
* @param runnable the runnable to call on SIGINT.
*/
public static void attachSignalHandler(final Runnable runnable) {
public static void attachSignalHandler(Runnable runnable) {
Signal.handle(SIG_INT, (signal) -> runnable.run());
}

View File

@@ -126,7 +126,7 @@ public class LaunchedURLClassLoader extends URLClassLoader {
}
}
private void definePackage(final String className, final String packageName) {
private void definePackage(String className, String packageName) {
try {
AccessController.doPrivileged((PrivilegedExceptionAction<Object>) () -> {
String packageEntryName = packageName.replace('.', '/') + "/";

View File

@@ -228,7 +228,7 @@ public class JarFile extends java.util.jar.JarFile {
* @return a {@link JarFile} for the entry
* @throws IOException if the nested jar file cannot be read
*/
public synchronized JarFile getNestedJarFile(final ZipEntry entry)
public synchronized JarFile getNestedJarFile(ZipEntry entry)
throws IOException {
return getNestedJarFile((JarEntry) entry);
}

View File

@@ -348,7 +348,7 @@ public class PropertiesLauncherTests {
assertThat(timeout).as("Timed out waiting for (" + value + ")").isTrue();
}
private Condition<Archive> endingWith(final String value) {
private Condition<Archive> endingWith(String value) {
return new Condition<Archive>() {
@Override

View File

@@ -39,7 +39,7 @@ public final class Matched<T> extends Condition<T> {
}
@Override
public boolean matches(final T value) {
public boolean matches(T value) {
if (this.matcher.matches(value)) {
return true;
}

View File

@@ -48,7 +48,7 @@ public class OutputCapture implements TestRule {
private List<Matcher<? super String>> matchers = new ArrayList<>();
@Override
public Statement apply(final Statement base, Description description) {
public Statement apply(Statement base, Description description) {
return new Statement() {
@Override
public void evaluate() throws Throwable {

View File

@@ -48,7 +48,7 @@ public class RedisTestServer implements TestRule {
private RedisConnectionFactory connectionFactory;
@Override
public Statement apply(final Statement base, Description description) {
public Statement apply(Statement base, Description description) {
try {
this.connectionFactory = createConnectionFactory();
return new RedisStatement(base, this.connectionFactory);

View File

@@ -317,7 +317,7 @@ public class ModifiedClassPathRunner extends BlockJUnit4ClassRunner {
}
@Override
public Object invokeExplosively(final Object target, final Object... params)
public Object invokeExplosively(Object target, Object... params)
throws Throwable {
return doWithModifiedClassPathThreadContextClassLoader(
() -> ModifiedClassPathFrameworkMethod.super.invokeExplosively(