Remove redundant semicolons

Closes gh-10422
pull/10422/merge
dreis2211 7 years ago committed by Stephane Nicoll
parent bbee943972
commit f3472beed8

@ -120,6 +120,6 @@ class Token {
@Override @Override
public String toString() { public String toString() {
return this.encoded; return this.encoded;
}; }
} }

@ -184,7 +184,7 @@ public class ManagementContextAutoConfiguration {
if (event instanceof ApplicationFailedEvent) { if (event instanceof ApplicationFailedEvent) {
onApplicationFailedEvent((ApplicationFailedEvent) event); onApplicationFailedEvent((ApplicationFailedEvent) event);
} }
}; }
private void onContextClosedEvent(ContextClosedEvent event) { private void onContextClosedEvent(ContextClosedEvent event) {
propagateCloseIfNecessary(event.getApplicationContext()); propagateCloseIfNecessary(event.getApplicationContext());

@ -74,6 +74,6 @@ public enum CacheType {
/** /**
* No caching. * No caching.
*/ */
NONE; NONE
} }

@ -766,7 +766,7 @@ public class KafkaProperties {
/** /**
* Invokes the endpoint with a batch of ConsumerRecords. * Invokes the endpoint with a batch of ConsumerRecords.
*/ */
BATCH; BATCH
} }

@ -49,6 +49,6 @@ public enum StoreType {
/** /**
* No session data-store. * No session data-store.
*/ */
NONE; NONE
} }

@ -122,7 +122,7 @@ public class HttpMessageConvertersTests {
} }
} }
return converters; return converters;
}; }
}; };
List<Class<?>> converterClasses = new ArrayList<>(); List<Class<?>> converterClasses = new ArrayList<>();
for (HttpMessageConverter<?> converter : converters) { for (HttpMessageConverter<?> converter : converters) {
@ -152,7 +152,7 @@ public class HttpMessageConvertersTests {
} }
} }
return converters; return converters;
}; }
}; };
List<Class<?>> converterClasses = new ArrayList<>(); List<Class<?>> converterClasses = new ArrayList<>();
for (HttpMessageConverter<?> converter : extractFormPartConverters( for (HttpMessageConverter<?> converter : extractFormPartConverters(

@ -185,7 +185,7 @@ public class BasicErrorControllerDirectMockMvcTests {
@Pointcut("within(@org.springframework.stereotype.Controller *)") @Pointcut("within(@org.springframework.stereotype.Controller *)")
private void controllerPointCut() { private void controllerPointCut() {
}; }
@Around("controllerPointCut()") @Around("controllerPointCut()")
public Object mvcAdvice(ProceedingJoinPoint pjp) throws Throwable { public Object mvcAdvice(ProceedingJoinPoint pjp) throws Throwable {

@ -77,7 +77,7 @@ public class CommandRunnerTests {
protected void showUsage() { protected void showUsage() {
CommandRunnerTests.this.calls.add(Call.SHOW_USAGE); CommandRunnerTests.this.calls.add(Call.SHOW_USAGE);
super.showUsage(); super.showUsage();
}; }
@Override @Override
protected boolean errorMessage(String message) { protected boolean errorMessage(String message) {

@ -242,7 +242,7 @@ public class FileSystemWatcher {
} }
remainingScans = this.remainingScans.get(); remainingScans = this.remainingScans.get();
} }
}; }
private void scan() throws InterruptedException { private void scan() throws InterruptedException {
Thread.sleep(this.pollInterval - this.quietPeriod); Thread.sleep(this.pollInterval - this.quietPeriod);

@ -42,7 +42,7 @@ class JsonExcludeFilter extends AnnotationCustomizableTypeExcludeFilter {
includes.add(Module.class); includes.add(Module.class);
includes.add(JsonComponent.class); includes.add(JsonComponent.class);
DEFAULT_INCLUDES = Collections.unmodifiableSet(includes); DEFAULT_INCLUDES = Collections.unmodifiableSet(includes);
}; }
private final JsonTest annotation; private final JsonTest annotation;

@ -57,7 +57,7 @@ class WebMvcTypeExcludeFilter extends AnnotationCustomizableTypeExcludeFilter {
includes.add(HttpMessageConverter.class); includes.add(HttpMessageConverter.class);
includes.add(ErrorAttributes.class); includes.add(ErrorAttributes.class);
DEFAULT_INCLUDES = Collections.unmodifiableSet(includes); DEFAULT_INCLUDES = Collections.unmodifiableSet(includes);
}; }
private static final Set<Class<?>> DEFAULT_INCLUDES_AND_CONTROLLER; private static final Set<Class<?>> DEFAULT_INCLUDES_AND_CONTROLLER;

@ -299,7 +299,7 @@ public final class TestPropertyValues {
@Override @Override
public void close() { public void close() {
this.previous.forEach(this::setOrClear); this.previous.forEach(this::setOrClear);
}; }
private String setOrClear(String name, String value) { private String setOrClear(String name, String value) {
Assert.notNull(name, "Name must not be null"); Assert.notNull(name, "Name must not be null");

@ -80,7 +80,7 @@ public class SpringBootMockServletContextTests implements ServletContextAware {
protected String getResourceLocation(String path) { protected String getResourceLocation(String path) {
// Don't include the Spring Boot defaults for this test // Don't include the Spring Boot defaults for this test
return getResourceBasePathLocation(path); return getResourceBasePathLocation(path);
}; }
}; };
URL resource = context.getResource("/"); URL resource = context.getResource("/");
assertThat(resource).isNotEqualTo(nullValue()); assertThat(resource).isNotEqualTo(nullValue());

@ -84,7 +84,7 @@ final class ApplicationPluginAction implements PluginApplicationAction {
private String loadResource(String name) { private String loadResource(String name) {
try (InputStreamReader reader = new InputStreamReader( try (InputStreamReader reader = new InputStreamReader(
getClass().getResourceAsStream(name));) { getClass().getResourceAsStream(name))) {
char[] buffer = new char[4096]; char[] buffer = new char[4096];
int read = 0; int read = 0;
StringWriter writer = new StringWriter(); StringWriter writer = new StringWriter();

@ -34,6 +34,6 @@ public enum ZipCompression {
/** /**
* The entry should be {@link ZipEntry#DEFLATED} in the archive. * 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().getUncaughtExceptionHandler());
Thread.currentThread().setUncaughtExceptionHandler(handler); Thread.currentThread().setUncaughtExceptionHandler(handler);
return handler; return handler;
}; }
} }

@ -41,6 +41,6 @@ public enum WebApplicationType {
* The application should run as a reactive web application and should start an * The application should run as a reactive web application and should start an
* embedded reactive web server. * 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 MapTypeReference extends TypeReference<Map<String, Object>> {
}; }
private static class ListTypeReference extends TypeReference<List<Object>> { private static class ListTypeReference extends TypeReference<List<Object>> {
}; }
} }

@ -957,7 +957,7 @@ public class SpringApplicationTests {
FailingConfig.class); FailingConfig.class);
application.setWebApplicationType(WebApplicationType.NONE); application.setWebApplicationType(WebApplicationType.NONE);
application.run(); application.run();
}; }
}; };
thread.start(); thread.start();
thread.join(6000); thread.join(6000);

@ -113,6 +113,6 @@ public class MapConfigurationPropertySourceTests {
ConfigurationProperty property = source ConfigurationProperty property = source
.getConfigurationProperty(ConfigurationPropertyName.of(name)); .getConfigurationProperty(ConfigurationPropertyName.of(name));
return (property == null ? null : property.getValue()); return (property == null ? null : property.getValue());
}; }
} }

@ -144,7 +144,7 @@ public class BeanCurrentlyInCreationFailureAnalyzerTests {
private Exception createFailure(Class<?> configuration) { private Exception createFailure(Class<?> configuration) {
try (ConfigurableApplicationContext context = new AnnotationConfigApplicationContext( try (ConfigurableApplicationContext context = new AnnotationConfigApplicationContext(
configuration);) { configuration)) {
fail("Expected failure did not occur"); fail("Expected failure did not occur");
return null; return null;
} }

@ -36,7 +36,7 @@ public class PoolingConnectionFactoryBeanTests {
@Override @Override
public synchronized void init() { public synchronized void init() {
// Stub out for the tests // Stub out for the tests
}; }
}; };
@Test @Test

@ -1227,7 +1227,7 @@ public abstract class AbstractServletWebServerFactoryTests {
return this.initCount; return this.initCount;
} }
}; }
public interface BlockedPortAction { public interface BlockedPortAction {

@ -132,7 +132,7 @@ public class SpringBootServletInitializerTests {
protected WebApplicationContext run(SpringApplication application) { protected WebApplicationContext run(SpringApplication application) {
SpringBootServletInitializerTests.this.application = application; SpringBootServletInitializerTests.this.application = application;
return null; return null;
}; }
} }

Loading…
Cancel
Save