Skip to content

Commit 1f7f0c1

Browse files
committed
Merge pull request #10422 from dreis2211:remove-redundant-semicolons
* pr/10422: Remove redundant semicolons
2 parents bbee943 + f3472be commit 1f7f0c1

File tree

24 files changed

+26
-26
lines changed

24 files changed

+26
-26
lines changed

spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/cloudfoundry/Token.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,6 @@ private <T> T getRequired(Map<String, Object> map, String key, Class<T> type) {
120120
@Override
121121
public String toString() {
122122
return this.encoded;
123-
};
123+
}
124124

125125
}

spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/web/server/ManagementContextAutoConfiguration.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ public void onApplicationEvent(ApplicationEvent event) {
184184
if (event instanceof ApplicationFailedEvent) {
185185
onApplicationFailedEvent((ApplicationFailedEvent) event);
186186
}
187-
};
187+
}
188188

189189
private void onContextClosedEvent(ContextClosedEvent event) {
190190
propagateCloseIfNecessary(event.getApplicationContext());

spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/cache/CacheType.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,6 @@ public enum CacheType {
7474
/**
7575
* No caching.
7676
*/
77-
NONE;
77+
NONE
7878

7979
}

spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/kafka/KafkaProperties.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -766,7 +766,7 @@ public enum Type {
766766
/**
767767
* Invokes the endpoint with a batch of ConsumerRecords.
768768
*/
769-
BATCH;
769+
BATCH
770770

771771
}
772772

spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/session/StoreType.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,6 @@ public enum StoreType {
4949
/**
5050
* No session data-store.
5151
*/
52-
NONE;
52+
NONE
5353

5454
}

spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/http/HttpMessageConvertersTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ protected List<HttpMessageConverter<?>> postProcessConverters(
122122
}
123123
}
124124
return converters;
125-
};
125+
}
126126
};
127127
List<Class<?>> converterClasses = new ArrayList<>();
128128
for (HttpMessageConverter<?> converter : converters) {
@@ -152,7 +152,7 @@ protected List<HttpMessageConverter<?>> postProcessPartConverters(
152152
}
153153
}
154154
return converters;
155-
};
155+
}
156156
};
157157
List<Class<?>> converterClasses = new ArrayList<>();
158158
for (HttpMessageConverter<?> converter : extractFormPartConverters(

spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/web/servlet/error/BasicErrorControllerDirectMockMvcTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ protected static class WithAopConfiguration {
185185

186186
@Pointcut("within(@org.springframework.stereotype.Controller *)")
187187
private void controllerPointCut() {
188-
};
188+
}
189189

190190
@Around("controllerPointCut()")
191191
public Object mvcAdvice(ProceedingJoinPoint pjp) throws Throwable {

spring-boot-cli/src/test/java/org/springframework/boot/cli/command/CommandRunnerTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ public void setup() {
7777
protected void showUsage() {
7878
CommandRunnerTests.this.calls.add(Call.SHOW_USAGE);
7979
super.showUsage();
80-
};
80+
}
8181

8282
@Override
8383
protected boolean errorMessage(String message) {

spring-boot-devtools/src/main/java/org/springframework/boot/devtools/filewatch/FileSystemWatcher.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ public void run() {
242242
}
243243
remainingScans = this.remainingScans.get();
244244
}
245-
};
245+
}
246246

247247
private void scan() throws InterruptedException {
248248
Thread.sleep(this.pollInterval - this.quietPeriod);

spring-boot-test-autoconfigure/src/main/java/org/springframework/boot/test/autoconfigure/json/JsonExcludeFilter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ class JsonExcludeFilter extends AnnotationCustomizableTypeExcludeFilter {
4242
includes.add(Module.class);
4343
includes.add(JsonComponent.class);
4444
DEFAULT_INCLUDES = Collections.unmodifiableSet(includes);
45-
};
45+
}
4646

4747
private final JsonTest annotation;
4848

spring-boot-test-autoconfigure/src/main/java/org/springframework/boot/test/autoconfigure/web/servlet/WebMvcTypeExcludeFilter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ class WebMvcTypeExcludeFilter extends AnnotationCustomizableTypeExcludeFilter {
5757
includes.add(HttpMessageConverter.class);
5858
includes.add(ErrorAttributes.class);
5959
DEFAULT_INCLUDES = Collections.unmodifiableSet(includes);
60-
};
60+
}
6161

6262
private static final Set<Class<?>> DEFAULT_INCLUDES_AND_CONTROLLER;
6363

spring-boot-test/src/main/java/org/springframework/boot/test/util/TestPropertyValues.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ private Map<String, String> apply(Map<String, ?> properties) {
299299
@Override
300300
public void close() {
301301
this.previous.forEach(this::setOrClear);
302-
};
302+
}
303303

304304
private String setOrClear(String name, String value) {
305305
Assert.notNull(name, "Name must not be null");

spring-boot-test/src/test/java/org/springframework/boot/test/mock/web/SpringBootMockServletContextTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public void getRootUrlExistsAndIsEmpty() throws Exception {
8080
protected String getResourceLocation(String path) {
8181
// Don't include the Spring Boot defaults for this test
8282
return getResourceBasePathLocation(path);
83-
};
83+
}
8484
};
8585
URL resource = context.getResource("/");
8686
assertThat(resource).isNotEqualTo(nullValue());

spring-boot-tools/spring-boot-gradle-plugin/src/main/java/org/springframework/boot/gradle/plugin/ApplicationPluginAction.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ public Class<? extends Plugin<Project>> getPluginClass() {
8484

8585
private String loadResource(String name) {
8686
try (InputStreamReader reader = new InputStreamReader(
87-
getClass().getResourceAsStream(name));) {
87+
getClass().getResourceAsStream(name))) {
8888
char[] buffer = new char[4096];
8989
int read = 0;
9090
StringWriter writer = new StringWriter();

spring-boot-tools/spring-boot-gradle-plugin/src/main/java/org/springframework/boot/gradle/tasks/bundling/ZipCompression.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,6 @@ public enum ZipCompression {
3434
/**
3535
* The entry should be {@link ZipEntry#DEFLATED} in the archive.
3636
*/
37-
DEFLATED;
37+
DEFLATED
3838

3939
}

spring-boot/src/main/java/org/springframework/boot/SpringBootExceptionHandler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ protected SpringBootExceptionHandler initialValue() {
123123
Thread.currentThread().getUncaughtExceptionHandler());
124124
Thread.currentThread().setUncaughtExceptionHandler(handler);
125125
return handler;
126-
};
126+
}
127127

128128
}
129129

spring-boot/src/main/java/org/springframework/boot/WebApplicationType.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,6 @@ public enum WebApplicationType {
4141
* The application should run as a reactive web application and should start an
4242
* embedded reactive web server.
4343
*/
44-
REACTIVE;
44+
REACTIVE
4545

4646
}

spring-boot/src/main/java/org/springframework/boot/json/JacksonJsonParser.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,10 @@ private ObjectMapper getObjectMapper() {
6565

6666
private static class MapTypeReference extends TypeReference<Map<String, Object>> {
6767

68-
};
68+
}
6969

7070
private static class ListTypeReference extends TypeReference<List<Object>> {
7171

72-
};
72+
}
7373

7474
}

spring-boot/src/test/java/org/springframework/boot/SpringApplicationTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -957,7 +957,7 @@ public void run() {
957957
FailingConfig.class);
958958
application.setWebApplicationType(WebApplicationType.NONE);
959959
application.run();
960-
};
960+
}
961961
};
962962
thread.start();
963963
thread.join(6000);

spring-boot/src/test/java/org/springframework/boot/context/properties/source/MapConfigurationPropertySourceTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,6 @@ private Object getValue(ConfigurationPropertySource source, String name) {
113113
ConfigurationProperty property = source
114114
.getConfigurationProperty(ConfigurationPropertyName.of(name));
115115
return (property == null ? null : property.getValue());
116-
};
116+
}
117117

118118
}

spring-boot/src/test/java/org/springframework/boot/diagnostics/analyzer/BeanCurrentlyInCreationFailureAnalyzerTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ private FailureAnalysis performAnalysis(Class<?> configuration) {
144144

145145
private Exception createFailure(Class<?> configuration) {
146146
try (ConfigurableApplicationContext context = new AnnotationConfigApplicationContext(
147-
configuration);) {
147+
configuration)) {
148148
fail("Expected failure did not occur");
149149
return null;
150150
}

spring-boot/src/test/java/org/springframework/boot/jta/bitronix/PoolingConnectionFactoryBeanTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public class PoolingConnectionFactoryBeanTests {
3636
@Override
3737
public synchronized void init() {
3838
// Stub out for the tests
39-
};
39+
}
4040
};
4141

4242
@Test

spring-boot/src/test/java/org/springframework/boot/web/servlet/server/AbstractServletWebServerFactoryTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1227,7 +1227,7 @@ public int getInitCount() {
12271227
return this.initCount;
12281228
}
12291229

1230-
};
1230+
}
12311231

12321232
public interface BlockedPortAction {
12331233

spring-boot/src/test/java/org/springframework/boot/web/servlet/support/SpringBootServletInitializerTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ private class MockSpringBootServletInitializer extends SpringBootServletInitiali
132132
protected WebApplicationContext run(SpringApplication application) {
133133
SpringBootServletInitializerTests.this.application = application;
134134
return null;
135-
};
135+
}
136136

137137
}
138138

0 commit comments

Comments
 (0)