Remove "final" keywords
Closes gh-11294
This commit is contained in:
committed by
Stephane Nicoll
parent
bd7bd6edc8
commit
6d54072e04
@@ -34,7 +34,7 @@ public class ConfigFileApplicationContextInitializer
|
||||
implements ApplicationContextInitializer<ConfigurableApplicationContext> {
|
||||
|
||||
@Override
|
||||
public void initialize(final ConfigurableApplicationContext applicationContext) {
|
||||
public void initialize(ConfigurableApplicationContext applicationContext) {
|
||||
new ConfigFileApplicationListener() {
|
||||
public void apply() {
|
||||
addPropertySources(applicationContext.getEnvironment(),
|
||||
|
||||
@@ -365,13 +365,13 @@ public abstract class AbstractJsonMarshalTester<T> {
|
||||
this.testerClass = testerClass;
|
||||
}
|
||||
|
||||
public void initFields(final Object testInstance, final M marshaller) {
|
||||
public void initFields(Object testInstance, M marshaller) {
|
||||
Assert.notNull(testInstance, "TestInstance must not be null");
|
||||
Assert.notNull(marshaller, "Marshaller must not be null");
|
||||
initFields(testInstance, () -> marshaller);
|
||||
}
|
||||
|
||||
public void initFields(final Object testInstance,
|
||||
public void initFields(Object testInstance,
|
||||
final ObjectFactory<M> marshaller) {
|
||||
Assert.notNull(testInstance, "TestInstance must not be null");
|
||||
Assert.notNull(marshaller, "Marshaller must not be null");
|
||||
|
||||
@@ -52,7 +52,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 {
|
||||
|
||||
@@ -1306,7 +1306,7 @@ public class JsonContentAssertTests {
|
||||
|
||||
}
|
||||
|
||||
private AssertProvider<JsonContentAssert> forJson(final String json) {
|
||||
private AssertProvider<JsonContentAssert> forJson(String json) {
|
||||
return () -> new JsonContentAssert(JsonContentAssertTests.class, json);
|
||||
}
|
||||
|
||||
|
||||
@@ -72,7 +72,7 @@ public class ObjectContentAssertTests {
|
||||
assertThat(forObject(SOURCE)).asMap();
|
||||
}
|
||||
|
||||
private AssertProvider<ObjectContentAssert<Object>> forObject(final Object source) {
|
||||
private AssertProvider<ObjectContentAssert<Object>> forObject(Object source) {
|
||||
return () -> new ObjectContentAssert<>(source);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user