Fix checkstyle RedundantModifier test violations

This commit is contained in:
Phillip Webb
2019-06-07 20:46:33 -07:00
parent cde4f0d688
commit 266d6334b2
41 changed files with 88 additions and 75 deletions

View File

@@ -60,7 +60,8 @@ public class SpringApplicationLauncher {
Map<String, Object> defaultProperties = new HashMap<>();
defaultProperties.put("spring.groovy.template.check-template-location", "false");
Class<?> applicationClass = this.classLoader.loadClass(getSpringApplicationClassName());
Constructor<?> constructor = applicationClass.getConstructor(Class[].class);
Constructor<?> constructor = applicationClass.getDeclaredConstructor(Class[].class);
constructor.setAccessible(true);
Object application = constructor.newInstance((Object) sources);
applicationClass.getMethod("setDefaultProperties", Map.class).invoke(application, defaultProperties);
Method method = applicationClass.getMethod("run", String[].class);

View File

@@ -122,7 +122,7 @@ class SpringApplicationLauncherTests {
private static String[] args;
public TestSpringApplication(Class<?>[] sources) {
TestSpringApplication(Class<?>[] sources) {
TestSpringApplication.sources = sources;
}

View File

@@ -59,7 +59,7 @@ class InitCommandTests extends AbstractHttpClientMockTests {
MockitoAnnotations.initMocks(this);
}
public InitCommandTests() {
InitCommandTests() {
InitializrService initializrService = new InitializrService(this.http);
this.handler = new TestableInitCommandOptionHandler(initializrService);
this.command = new InitCommand(this.handler);