Commit 9dd5193f authored by Stephane Nicoll's avatar Stephane Nicoll

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
parents 6d16c5ff ed05e1f7
...@@ -91,7 +91,7 @@ public class ConfigurationPropertiesReportEndpointProxyTests { ...@@ -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 { ...@@ -147,7 +147,7 @@ abstract class AbstractCacheAutoConfigurationTests {
} }
static abstract class CacheManagerTestCustomizer<T extends CacheManager> abstract static class CacheManagerTestCustomizer<T extends CacheManager>
implements CacheManagerCustomizer<T> { implements CacheManagerCustomizer<T> {
T cacheManager; T cacheManager;
......
/* /*
* 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"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
...@@ -76,7 +76,7 @@ public class SilentExitExceptionHandlerTests { ...@@ -76,7 +76,7 @@ public class SilentExitExceptionHandlerTests {
} }
private static abstract class TestThread extends Thread { private abstract static class TestThread extends Thread {
private Throwable thrown; private Throwable thrown;
......
...@@ -129,6 +129,8 @@ ...@@ -129,6 +129,8 @@
<!-- Modifiers --> <!-- Modifiers -->
<module name="com.puppycrawl.tools.checkstyle.checks.modifier.RedundantModifierCheck" /> <module name="com.puppycrawl.tools.checkstyle.checks.modifier.RedundantModifierCheck" />
<module name="com.puppycrawl.tools.checkstyle.checks.modifier.ModifierOrderCheck"/>
<!-- Regexp --> <!-- Regexp -->
<module name="com.puppycrawl.tools.checkstyle.checks.regexp.RegexpSinglelineJavaCheck"> <module name="com.puppycrawl.tools.checkstyle.checks.regexp.RegexpSinglelineJavaCheck">
......
/* /*
* 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"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
...@@ -88,7 +88,7 @@ public abstract class AbstractSpringBootTestEmbeddedReactiveWebEnvironmentTests ...@@ -88,7 +88,7 @@ public abstract class AbstractSpringBootTestEmbeddedReactiveWebEnvironmentTests
assertThat(this.value).isEqualTo(123); assertThat(this.value).isEqualTo(123);
} }
protected static abstract class AbstractConfig { protected abstract static class AbstractConfig {
@Value("${server.port:8080}") @Value("${server.port:8080}")
private int port = 8080; private int port = 8080;
......
/* /*
* 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"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
...@@ -92,7 +92,7 @@ public abstract class AbstractSpringBootTestWebServerWebEnvironmentTests { ...@@ -92,7 +92,7 @@ public abstract class AbstractSpringBootTestWebServerWebEnvironmentTests {
WebApplicationContextUtils.getWebApplicationContext(this.servletContext)); WebApplicationContextUtils.getWebApplicationContext(this.servletContext));
} }
protected static abstract class AbstractConfig { protected abstract static class AbstractConfig {
@Value("${server.port:8080}") @Value("${server.port:8080}")
private int port = 8080; private int port = 8080;
......
/* /*
* 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"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
...@@ -65,7 +65,7 @@ public class GsonTesterTests extends AbstractJsonMarshalTesterTests { ...@@ -65,7 +65,7 @@ public class GsonTesterTests extends AbstractJsonMarshalTesterTests {
return new GsonTester<>(resourceLoadClass, type, new GsonBuilder().create()); return new GsonTester<>(resourceLoadClass, type, new GsonBuilder().create());
} }
static abstract class InitFieldsBaseClass { abstract static class InitFieldsBaseClass {
public GsonTester<ExampleObject> base; public GsonTester<ExampleObject> base;
......
/* /*
* 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"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
...@@ -64,7 +64,7 @@ public class JacksonTesterTests extends AbstractJsonMarshalTesterTests { ...@@ -64,7 +64,7 @@ public class JacksonTesterTests extends AbstractJsonMarshalTesterTests {
return new JacksonTester<>(resourceLoadClass, type, new ObjectMapper()); return new JacksonTester<>(resourceLoadClass, type, new ObjectMapper());
} }
static abstract class InitFieldsBaseClass { abstract static class InitFieldsBaseClass {
public JacksonTester<ExampleObject> base; public JacksonTester<ExampleObject> base;
......
/* /*
* 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"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
...@@ -66,7 +66,7 @@ public class JsonbTesterTests extends AbstractJsonMarshalTesterTests { ...@@ -66,7 +66,7 @@ public class JsonbTesterTests extends AbstractJsonMarshalTesterTests {
return new JsonbTester<>(resourceLoadClass, type, JsonbBuilder.create()); return new JsonbTester<>(resourceLoadClass, type, JsonbBuilder.create());
} }
static abstract class InitFieldsBaseClass { abstract static class InitFieldsBaseClass {
public JsonbTester<ExampleObject> base; public JsonbTester<ExampleObject> base;
......
/* /*
* 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"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
...@@ -167,7 +167,7 @@ public final class Verify { ...@@ -167,7 +167,7 @@ public final class Verify {
} }
private static abstract class AbstractArchiveVerification { private abstract static class AbstractArchiveVerification {
private final File file; private final File file;
......
...@@ -100,7 +100,7 @@ public final class LambdaSafe { ...@@ -100,7 +100,7 @@ public final class LambdaSafe {
/** /**
* Abstract base class for lambda safe callbacks. * 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; private final Class<C> callbackType;
......
...@@ -1357,7 +1357,7 @@ public class SpringApplicationTests { ...@@ -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; private final String[] expectedBefore;
......
/* /*
* 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"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
...@@ -110,7 +110,7 @@ public class JsonComponentModuleTests { ...@@ -110,7 +110,7 @@ public class JsonComponentModuleTests {
@JsonComponent @JsonComponent
static class ComponentWithInnerAbstractClass { static class ComponentWithInnerAbstractClass {
private static abstract class AbstractSerializer private abstract static class AbstractSerializer
extends NameAndAgeJsonComponent.Serializer { extends NameAndAgeJsonComponent.Serializer {
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment