Merge pull request #12432 from igor-suhorukov:master

* pr/12432:
  Polish "Reorder modifiers to comply with the JLS"
  Reorder modifiers to comply with the JLS
pull/12432/merge
Stephane Nicoll 7 years ago
commit 9dd5193f13

@ -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;

@ -1,5 +1,5 @@
/*
* Copyright 2012-2017 the original author or authors.
* Copyright 2012-2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -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">

@ -1,5 +1,5 @@
/*
* Copyright 2012-2017 the original author or authors.
* Copyright 2012-2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -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;

@ -1,5 +1,5 @@
/*
* Copyright 2012-2017 the original author or authors.
* Copyright 2012-2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -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;

@ -1,5 +1,5 @@
/*
* Copyright 2012-2017 the original author or authors.
* Copyright 2012-2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -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;

@ -1,5 +1,5 @@
/*
* Copyright 2012-2017 the original author or authors.
* Copyright 2012-2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -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;

@ -1,5 +1,5 @@
/*
* Copyright 2012-2017 the original author or authors.
* Copyright 2012-2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -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;

@ -1,5 +1,5 @@
/*
* Copyright 2012-2017 the original author or authors.
* Copyright 2012-2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -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;

@ -1,5 +1,5 @@
/*
* Copyright 2012-2017 the original author or authors.
* Copyright 2012-2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -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…
Cancel
Save