mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-09-03 04:26:12 +08:00
Reorder modifiers to comply with the JLS
See gh-12432
This commit is contained in:
parent
6d16c5ff6e
commit
aebb475bc5
@ -91,7 +91,7 @@ public class ConfigurationPropertiesReportEndpointProxyTests {
|
||||
|
||||
}
|
||||
|
||||
public static abstract class AbstractExecutor implements Executor {
|
||||
public abstract static class AbstractExecutor implements Executor {
|
||||
|
||||
}
|
||||
|
||||
|
@ -147,7 +147,7 @@ abstract class AbstractCacheAutoConfigurationTests {
|
||||
|
||||
}
|
||||
|
||||
static abstract class CacheManagerTestCustomizer<T extends CacheManager>
|
||||
abstract static class CacheManagerTestCustomizer<T extends CacheManager>
|
||||
implements CacheManagerCustomizer<T> {
|
||||
|
||||
T cacheManager;
|
||||
|
@ -76,7 +76,7 @@ public class SilentExitExceptionHandlerTests {
|
||||
|
||||
}
|
||||
|
||||
private static abstract class TestThread extends Thread {
|
||||
private abstract static class TestThread extends Thread {
|
||||
|
||||
private Throwable thrown;
|
||||
|
||||
|
@ -129,6 +129,8 @@
|
||||
|
||||
<!-- Modifiers -->
|
||||
<module name="com.puppycrawl.tools.checkstyle.checks.modifier.RedundantModifierCheck" />
|
||||
<module name="com.puppycrawl.tools.checkstyle.checks.modifier.ModifierOrderCheck"/>
|
||||
|
||||
|
||||
<!-- Regexp -->
|
||||
<module name="com.puppycrawl.tools.checkstyle.checks.regexp.RegexpSinglelineJavaCheck">
|
||||
|
@ -88,7 +88,7 @@ public abstract class AbstractSpringBootTestEmbeddedReactiveWebEnvironmentTests
|
||||
assertThat(this.value).isEqualTo(123);
|
||||
}
|
||||
|
||||
protected static abstract class AbstractConfig {
|
||||
protected abstract static class AbstractConfig {
|
||||
|
||||
@Value("${server.port:8080}")
|
||||
private int port = 8080;
|
||||
|
@ -92,7 +92,7 @@ public abstract class AbstractSpringBootTestWebServerWebEnvironmentTests {
|
||||
WebApplicationContextUtils.getWebApplicationContext(this.servletContext));
|
||||
}
|
||||
|
||||
protected static abstract class AbstractConfig {
|
||||
protected abstract static class AbstractConfig {
|
||||
|
||||
@Value("${server.port:8080}")
|
||||
private int port = 8080;
|
||||
|
@ -65,7 +65,7 @@ public class GsonTesterTests extends AbstractJsonMarshalTesterTests {
|
||||
return new GsonTester<>(resourceLoadClass, type, new GsonBuilder().create());
|
||||
}
|
||||
|
||||
static abstract class InitFieldsBaseClass {
|
||||
abstract static class InitFieldsBaseClass {
|
||||
|
||||
public GsonTester<ExampleObject> base;
|
||||
|
||||
|
@ -64,7 +64,7 @@ public class JacksonTesterTests extends AbstractJsonMarshalTesterTests {
|
||||
return new JacksonTester<>(resourceLoadClass, type, new ObjectMapper());
|
||||
}
|
||||
|
||||
static abstract class InitFieldsBaseClass {
|
||||
abstract static class InitFieldsBaseClass {
|
||||
|
||||
public JacksonTester<ExampleObject> base;
|
||||
|
||||
|
@ -66,7 +66,7 @@ public class JsonbTesterTests extends AbstractJsonMarshalTesterTests {
|
||||
return new JsonbTester<>(resourceLoadClass, type, JsonbBuilder.create());
|
||||
}
|
||||
|
||||
static abstract class InitFieldsBaseClass {
|
||||
abstract static class InitFieldsBaseClass {
|
||||
|
||||
public JsonbTester<ExampleObject> base;
|
||||
|
||||
|
@ -167,7 +167,7 @@ public final class Verify {
|
||||
|
||||
}
|
||||
|
||||
private static abstract class AbstractArchiveVerification {
|
||||
private abstract static class AbstractArchiveVerification {
|
||||
|
||||
private final File file;
|
||||
|
||||
|
@ -100,7 +100,7 @@ public final class LambdaSafe {
|
||||
/**
|
||||
* Abstract base class for lambda safe callbacks.
|
||||
*/
|
||||
private static abstract class LambdaSafeCallback<C, A, SELF extends LambdaSafeCallback<C, A, SELF>> {
|
||||
private abstract static class LambdaSafeCallback<C, A, SELF extends LambdaSafeCallback<C, A, SELF>> {
|
||||
|
||||
private final Class<C> callbackType;
|
||||
|
||||
|
@ -1357,7 +1357,7 @@ public class SpringApplicationTests {
|
||||
|
||||
}
|
||||
|
||||
static abstract class AbstractTestRunner implements ApplicationContextAware, Ordered {
|
||||
abstract static class AbstractTestRunner implements ApplicationContextAware, Ordered {
|
||||
|
||||
private final String[] expectedBefore;
|
||||
|
||||
|
@ -110,7 +110,7 @@ public class JsonComponentModuleTests {
|
||||
@JsonComponent
|
||||
static class ComponentWithInnerAbstractClass {
|
||||
|
||||
private static abstract class AbstractSerializer
|
||||
private abstract static class AbstractSerializer
|
||||
extends NameAndAgeJsonComponent.Serializer {
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user