Skip to content

Commit 6d54072

Browse files
izeyesnicoll
authored andcommitted
Remove "final" keywords
Closes gh-11294
1 parent bd7bd6e commit 6d54072

File tree

48 files changed

+60
-60
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+60
-60
lines changed

spring-boot-project/spring-boot-actuator-autoconfigure/src/test/java/org/springframework/boot/actuate/autoconfigure/cloudfoundry/AuthorizationExceptionMatcher.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public final class AuthorizationExceptionMatcher {
3131
private AuthorizationExceptionMatcher() {
3232
}
3333

34-
public static Matcher<?> withReason(final Reason reason) {
34+
public static Matcher<?> withReason(Reason reason) {
3535
return new CustomMatcher<Object>(
3636
"CloudFoundryAuthorizationException with " + reason + " reason") {
3737

spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/condition/OnClassCondition.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ private static final class ThreadedOutcomesResolver implements OutcomesResolver
252252

253253
private volatile ConditionOutcome[] outcomes;
254254

255-
private ThreadedOutcomesResolver(final OutcomesResolver outcomesResolver) {
255+
private ThreadedOutcomesResolver(OutcomesResolver outcomesResolver) {
256256
this.thread = new Thread(
257257
() -> this.outcomes = outcomesResolver.resolveOutcomes());
258258
this.thread.start();

spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/context/MessageSourceProperties.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ public boolean isUseCodeAsDefaultMessage() {
110110
return this.useCodeAsDefaultMessage;
111111
}
112112

113-
public void setUseCodeAsDefaultMessage(final boolean useCodeAsDefaultMessage) {
113+
public void setUseCodeAsDefaultMessage(boolean useCodeAsDefaultMessage) {
114114
this.useCodeAsDefaultMessage = useCodeAsDefaultMessage;
115115
}
116116

spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/sendgrid/SendGridProperties.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public String getApiKey() {
4242
return this.apiKey;
4343
}
4444

45-
public void setApiKey(final String apiKey) {
45+
public void setApiKey(String apiKey) {
4646
this.apiKey = apiKey;
4747
}
4848

spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/reactive/WebFluxAutoConfiguration.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ public void configureViewResolvers(ViewResolverRegistry registry) {
179179
}
180180

181181
@Override
182-
public void addFormatters(final FormatterRegistry registry) {
182+
public void addFormatters(FormatterRegistry registry) {
183183
for (Converter<?, ?> converter : getBeansOfType(Converter.class)) {
184184
registry.addConverter(converter);
185185
}

spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/servlet/DefaultServletWebServerFactoryCustomizer.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,7 @@ private static void customizeStaticResources(Resource resource,
411411

412412
private static class UndertowCustomizer {
413413

414-
protected static void customizeUndertow(final ServerProperties serverProperties,
414+
protected static void customizeUndertow(ServerProperties serverProperties,
415415
Environment environment, UndertowServletWebServerFactory factory) {
416416

417417
ServerProperties.Undertow undertowProperties = serverProperties.getUndertow();
@@ -478,7 +478,7 @@ private static void customizeMaxHttpPostSize(
478478

479479
private static class JettyCustomizer {
480480

481-
public static void customizeJetty(final ServerProperties serverProperties,
481+
public static void customizeJetty(ServerProperties serverProperties,
482482
Environment environment, JettyServletWebServerFactory factory) {
483483
ServerProperties.Jetty jettyProperties = serverProperties.getJetty();
484484
factory.setUseForwardHeaders(

spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/servlet/WelcomePageHandlerMapping.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ private boolean welcomeTemplateExists(
6666
applicationContext) != null;
6767
}
6868

69-
private void setRootViewName(final String viewName) {
69+
private void setRootViewName(String viewName) {
7070
ParameterizableViewController controller = new ParameterizableViewController();
7171
controller.setViewName(viewName);
7272
setRootHandler(controller);

spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/data/neo4j/Neo4jPropertiesTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ private static void assertCredentials(Configuration actual, String username,
172172
}
173173
}
174174

175-
public Neo4jProperties load(final boolean embeddedAvailable, String... environment) {
175+
public Neo4jProperties load(boolean embeddedAvailable, String... environment) {
176176
AnnotationConfigApplicationContext ctx = new AnnotationConfigApplicationContext();
177177
ctx.setClassLoader(new URLClassLoader(new URL[0], getClass().getClassLoader()) {
178178

spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/jms/artemis/ArtemisAutoConfigurationTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ public void checkTopic(String name, boolean shouldExist) {
335335
checkDestination(name, true, shouldExist);
336336
}
337337

338-
public void checkDestination(final String name, final boolean pubSub,
338+
public void checkDestination(String name, final boolean pubSub,
339339
final boolean shouldExist) {
340340
this.jmsTemplate.execute((SessionCallback<Void>) (session) -> {
341341
try {

spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/websocket/servlet/WebSocketMessagingAutoConfigurationTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ private List<MessageConverter> getDefaultConverters() {
139139
.getField(compositeDefaultConverter, "converters");
140140
}
141141

142-
private Object performStompSubscription(final String topic) throws Throwable {
142+
private Object performStompSubscription(String topic) throws Throwable {
143143
TestPropertyValues
144144
.of("server.port:0", "spring.jackson.serialization.indent-output:true")
145145
.applyTo(this.context);

0 commit comments

Comments
 (0)