Commit f3472bee authored by dreis2211's avatar dreis2211 Committed by Stephane Nicoll

Remove redundant semicolons

Closes gh-10422
parent bbee9439
......@@ -120,6 +120,6 @@ class Token {
@Override
public String toString() {
return this.encoded;
};
}
}
......@@ -184,7 +184,7 @@ public class ManagementContextAutoConfiguration {
if (event instanceof ApplicationFailedEvent) {
onApplicationFailedEvent((ApplicationFailedEvent) event);
}
};
}
private void onContextClosedEvent(ContextClosedEvent event) {
propagateCloseIfNecessary(event.getApplicationContext());
......
......@@ -74,6 +74,6 @@ public enum CacheType {
/**
* No caching.
*/
NONE;
NONE
}
......@@ -766,7 +766,7 @@ public class KafkaProperties {
/**
* Invokes the endpoint with a batch of ConsumerRecords.
*/
BATCH;
BATCH
}
......
......@@ -49,6 +49,6 @@ public enum StoreType {
/**
* No session data-store.
*/
NONE;
NONE
}
......@@ -122,7 +122,7 @@ public class HttpMessageConvertersTests {
}
}
return converters;
};
}
};
List<Class<?>> converterClasses = new ArrayList<>();
for (HttpMessageConverter<?> converter : converters) {
......@@ -152,7 +152,7 @@ public class HttpMessageConvertersTests {
}
}
return converters;
};
}
};
List<Class<?>> converterClasses = new ArrayList<>();
for (HttpMessageConverter<?> converter : extractFormPartConverters(
......
......@@ -185,7 +185,7 @@ public class BasicErrorControllerDirectMockMvcTests {
@Pointcut("within(@org.springframework.stereotype.Controller *)")
private void controllerPointCut() {
};
}
@Around("controllerPointCut()")
public Object mvcAdvice(ProceedingJoinPoint pjp) throws Throwable {
......
......@@ -77,7 +77,7 @@ public class CommandRunnerTests {
protected void showUsage() {
CommandRunnerTests.this.calls.add(Call.SHOW_USAGE);
super.showUsage();
};
}
@Override
protected boolean errorMessage(String message) {
......
......@@ -242,7 +242,7 @@ public class FileSystemWatcher {
}
remainingScans = this.remainingScans.get();
}
};
}
private void scan() throws InterruptedException {
Thread.sleep(this.pollInterval - this.quietPeriod);
......
......@@ -42,7 +42,7 @@ class JsonExcludeFilter extends AnnotationCustomizableTypeExcludeFilter {
includes.add(Module.class);
includes.add(JsonComponent.class);
DEFAULT_INCLUDES = Collections.unmodifiableSet(includes);
};
}
private final JsonTest annotation;
......
......@@ -57,7 +57,7 @@ class WebMvcTypeExcludeFilter extends AnnotationCustomizableTypeExcludeFilter {
includes.add(HttpMessageConverter.class);
includes.add(ErrorAttributes.class);
DEFAULT_INCLUDES = Collections.unmodifiableSet(includes);
};
}
private static final Set<Class<?>> DEFAULT_INCLUDES_AND_CONTROLLER;
......
......@@ -299,7 +299,7 @@ public final class TestPropertyValues {
@Override
public void close() {
this.previous.forEach(this::setOrClear);
};
}
private String setOrClear(String name, String value) {
Assert.notNull(name, "Name must not be null");
......
......@@ -80,7 +80,7 @@ public class SpringBootMockServletContextTests implements ServletContextAware {
protected String getResourceLocation(String path) {
// Don't include the Spring Boot defaults for this test
return getResourceBasePathLocation(path);
};
}
};
URL resource = context.getResource("/");
assertThat(resource).isNotEqualTo(nullValue());
......
......@@ -84,7 +84,7 @@ final class ApplicationPluginAction implements PluginApplicationAction {
private String loadResource(String name) {
try (InputStreamReader reader = new InputStreamReader(
getClass().getResourceAsStream(name));) {
getClass().getResourceAsStream(name))) {
char[] buffer = new char[4096];
int read = 0;
StringWriter writer = new StringWriter();
......
......@@ -34,6 +34,6 @@ public enum ZipCompression {
/**
* The entry should be {@link ZipEntry#DEFLATED} in the archive.
*/
DEFLATED;
DEFLATED
}
......@@ -123,7 +123,7 @@ class SpringBootExceptionHandler implements UncaughtExceptionHandler {
Thread.currentThread().getUncaughtExceptionHandler());
Thread.currentThread().setUncaughtExceptionHandler(handler);
return handler;
};
}
}
......
......@@ -41,6 +41,6 @@ public enum WebApplicationType {
* The application should run as a reactive web application and should start an
* embedded reactive web server.
*/
REACTIVE;
REACTIVE
}
......@@ -65,10 +65,10 @@ public class JacksonJsonParser implements JsonParser {
private static class MapTypeReference extends TypeReference<Map<String, Object>> {
};
}
private static class ListTypeReference extends TypeReference<List<Object>> {
};
}
}
......@@ -957,7 +957,7 @@ public class SpringApplicationTests {
FailingConfig.class);
application.setWebApplicationType(WebApplicationType.NONE);
application.run();
};
}
};
thread.start();
thread.join(6000);
......
......@@ -113,6 +113,6 @@ public class MapConfigurationPropertySourceTests {
ConfigurationProperty property = source
.getConfigurationProperty(ConfigurationPropertyName.of(name));
return (property == null ? null : property.getValue());
};
}
}
......@@ -144,7 +144,7 @@ public class BeanCurrentlyInCreationFailureAnalyzerTests {
private Exception createFailure(Class<?> configuration) {
try (ConfigurableApplicationContext context = new AnnotationConfigApplicationContext(
configuration);) {
configuration)) {
fail("Expected failure did not occur");
return null;
}
......
......@@ -36,7 +36,7 @@ public class PoolingConnectionFactoryBeanTests {
@Override
public synchronized void init() {
// Stub out for the tests
};
}
};
@Test
......
......@@ -1227,7 +1227,7 @@ public abstract class AbstractServletWebServerFactoryTests {
return this.initCount;
}
};
}
public interface BlockedPortAction {
......
......@@ -132,7 +132,7 @@ public class SpringBootServletInitializerTests {
protected WebApplicationContext run(SpringApplication application) {
SpringBootServletInitializerTests.this.application = application;
return null;
};
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment