Fix checkstyle RedundantModifier test violations
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -122,7 +122,7 @@ class SpringApplicationLauncherTests {
|
||||
|
||||
private static String[] args;
|
||||
|
||||
public TestSpringApplication(Class<?>[] sources) {
|
||||
TestSpringApplication(Class<?>[] sources) {
|
||||
TestSpringApplication.sources = sources;
|
||||
}
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user