Skip to content

Remove redundant semicolons #10422

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,6 @@ private <T> T getRequired(Map<String, Object> map, String key, Class<T> type) {
@Override
public String toString() {
return this.encoded;
};
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ public void onApplicationEvent(ApplicationEvent event) {
if (event instanceof ApplicationFailedEvent) {
onApplicationFailedEvent((ApplicationFailedEvent) event);
}
};
}

private void onContextClosedEvent(ContextClosedEvent event) {
propagateCloseIfNecessary(event.getApplicationContext());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,6 @@ public enum CacheType {
/**
* No caching.
*/
NONE;
NONE

}
Original file line number Diff line number Diff line change
Expand Up @@ -766,7 +766,7 @@ public enum Type {
/**
* Invokes the endpoint with a batch of ConsumerRecords.
*/
BATCH;
BATCH

}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,6 @@ public enum StoreType {
/**
* No session data-store.
*/
NONE;
NONE

}
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ protected List<HttpMessageConverter<?>> postProcessConverters(
}
}
return converters;
};
}
};
List<Class<?>> converterClasses = new ArrayList<>();
for (HttpMessageConverter<?> converter : converters) {
Expand Down Expand Up @@ -152,7 +152,7 @@ protected List<HttpMessageConverter<?>> postProcessPartConverters(
}
}
return converters;
};
}
};
List<Class<?>> converterClasses = new ArrayList<>();
for (HttpMessageConverter<?> converter : extractFormPartConverters(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ protected static class WithAopConfiguration {

@Pointcut("within(@org.springframework.stereotype.Controller *)")
private void controllerPointCut() {
};
}

@Around("controllerPointCut()")
public Object mvcAdvice(ProceedingJoinPoint pjp) throws Throwable {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public void setup() {
protected void showUsage() {
CommandRunnerTests.this.calls.add(Call.SHOW_USAGE);
super.showUsage();
};
}

@Override
protected boolean errorMessage(String message) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ public void run() {
}
remainingScans = this.remainingScans.get();
}
};
}

private void scan() throws InterruptedException {
Thread.sleep(this.pollInterval - this.quietPeriod);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ private Map<String, String> apply(Map<String, ?> properties) {
@Override
public void close() {
this.previous.forEach(this::setOrClear);
};
}

private String setOrClear(String name, String value) {
Assert.notNull(name, "Name must not be null");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public void getRootUrlExistsAndIsEmpty() throws Exception {
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());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ public Class<? extends Plugin<Project>> getPluginClass() {

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();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,6 @@ public enum ZipCompression {
/**
* The entry should be {@link ZipEntry#DEFLATED} in the archive.
*/
DEFLATED;
DEFLATED

}
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ protected SpringBootExceptionHandler initialValue() {
Thread.currentThread().getUncaughtExceptionHandler());
Thread.currentThread().setUncaughtExceptionHandler(handler);
return handler;
};
}

}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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

}
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,10 @@ private ObjectMapper getObjectMapper() {

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

};
}

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

};
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -957,7 +957,7 @@ public void run() {
FailingConfig.class);
application.setWebApplicationType(WebApplicationType.NONE);
application.run();
};
}
};
thread.start();
thread.join(6000);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,6 @@ private Object getValue(ConfigurationPropertySource source, String name) {
ConfigurationProperty property = source
.getConfigurationProperty(ConfigurationPropertyName.of(name));
return (property == null ? null : property.getValue());
};
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ private FailureAnalysis performAnalysis(Class<?> configuration) {

private Exception createFailure(Class<?> configuration) {
try (ConfigurableApplicationContext context = new AnnotationConfigApplicationContext(
configuration);) {
configuration)) {
fail("Expected failure did not occur");
return null;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public class PoolingConnectionFactoryBeanTests {
@Override
public synchronized void init() {
// Stub out for the tests
};
}
};

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1227,7 +1227,7 @@ public int getInitCount() {
return this.initCount;
}

};
}

public interface BlockedPortAction {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ private class MockSpringBootServletInitializer extends SpringBootServletInitiali
protected WebApplicationContext run(SpringApplication application) {
SpringBootServletInitializerTests.this.application = application;
return null;
};
}

}

Expand Down