Remove "final" keywords
Closes gh-11294
This commit is contained in:
committed by
Stephane Nicoll
parent
bd7bd6edc8
commit
6d54072e04
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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());
|
||||
}
|
||||
|
||||
|
||||
@@ -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('.', '/') + "/";
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user