From 4e96587dc80b2f9d7c468830a7c71a6b6a11380f Mon Sep 17 00:00:00 2001 From: Phillip Webb Date: Wed, 2 May 2018 15:07:35 -0700 Subject: [PATCH] Polish modifier declaration ordering Follow that Java language specification. --- .../EndpointWebMvcChildContextConfiguration.java | 2 +- .../boot/actuate/autoconfigure/ShellProperties.java | 4 ++-- .../metrics/dropwizard/DropwizardMetricServices.java | 4 ++-- .../ConfigurationPropertiesReportEndpointProxyTests.java | 2 +- .../mvc/HalBrowserMvcEndpointVanillaIntegrationTests.java | 4 ++-- .../actuate/health/ElasticsearchHealthIndicatorTests.java | 2 +- .../boot/autoconfigure/AutoConfigurationPackages.java | 2 +- .../mongo/embedded/EmbeddedMongoAutoConfiguration.java | 2 +- .../template/PathBasedTemplateAvailabilityProvider.java | 2 +- .../autoconfigure/cache/CacheAutoConfigurationTests.java | 2 +- .../jms/artemis/ArtemisAutoConfigurationTests.java | 2 +- .../autoconfigure/jndi/TestableInitialContextFactory.java | 2 +- .../boot/cli/command/init/InitializrServiceMetadata.java | 2 +- .../boot/devtools/livereload/Connection.java | 2 +- .../springframework/boot/devtools/restart/Restarter.java | 2 +- .../devtools/restart/classloader/RestartClassLoader.java | 6 +++--- .../boot/devtools/tunnel/payload/HttpTunnelPayload.java | 2 +- .../devtools/restart/SilentExitExceptionHandlerTests.java | 2 +- .../boot/test/json/AbstractJsonMarshalTester.java | 2 +- .../org/springframework/boot/test/json/GsonTesterTests.java | 2 +- .../springframework/boot/test/json/JacksonTesterTests.java | 2 +- .../ConfigurationWarningsApplicationContextInitializer.java | 2 +- .../embedded/undertow/UndertowEmbeddedServletContainer.java | 2 +- .../boot/web/client/RestTemplateBuilder.java | 2 +- .../boot/yaml/SpringProfileDocumentMatcher.java | 2 +- .../boot/jackson/JsonComponentModuleTests.java | 2 +- 26 files changed, 31 insertions(+), 31 deletions(-) diff --git a/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/autoconfigure/EndpointWebMvcChildContextConfiguration.java b/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/autoconfigure/EndpointWebMvcChildContextConfiguration.java index 0b6dbd877f..127a40b5f7 100644 --- a/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/autoconfigure/EndpointWebMvcChildContextConfiguration.java +++ b/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/autoconfigure/EndpointWebMvcChildContextConfiguration.java @@ -338,7 +338,7 @@ public class EndpointWebMvcChildContextConfiguration { } - static abstract class AccessLogCustomizer + abstract static class AccessLogCustomizer implements EmbeddedServletContainerCustomizer, Ordered { private final Class factoryClass; diff --git a/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/autoconfigure/ShellProperties.java b/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/autoconfigure/ShellProperties.java index d5153a71a8..9fc030a68f 100644 --- a/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/autoconfigure/ShellProperties.java +++ b/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/autoconfigure/ShellProperties.java @@ -190,7 +190,7 @@ public class ShellProperties { /** * Base class for CRaSH properties. */ - public static abstract class CrshShellProperties { + public abstract static class CrshShellProperties { /** * Apply the properties to a CRaSH configuration. @@ -203,7 +203,7 @@ public class ShellProperties { /** * Base class for Auth specific properties. */ - public static abstract class CrshShellAuthenticationProperties + public abstract static class CrshShellAuthenticationProperties extends CrshShellProperties { } diff --git a/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/metrics/dropwizard/DropwizardMetricServices.java b/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/metrics/dropwizard/DropwizardMetricServices.java index 2dd621f415..a87854bb6f 100644 --- a/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/metrics/dropwizard/DropwizardMetricServices.java +++ b/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/metrics/dropwizard/DropwizardMetricServices.java @@ -199,7 +199,7 @@ public class DropwizardMetricServices implements CounterService, GaugeService { /** * Simple {@link Gauge} implementation to {@literal double} value. */ - private final static class SimpleGauge implements Gauge { + private static final class SimpleGauge implements Gauge { private volatile double value; @@ -221,7 +221,7 @@ public class DropwizardMetricServices implements CounterService, GaugeService { /** * Strategy used to register metrics. */ - private static abstract class MetricRegistrar { + private abstract static class MetricRegistrar { private final Class type; diff --git a/spring-boot-actuator/src/test/java/org/springframework/boot/actuate/endpoint/ConfigurationPropertiesReportEndpointProxyTests.java b/spring-boot-actuator/src/test/java/org/springframework/boot/actuate/endpoint/ConfigurationPropertiesReportEndpointProxyTests.java index 89286011e3..4ee9f07c7e 100644 --- a/spring-boot-actuator/src/test/java/org/springframework/boot/actuate/endpoint/ConfigurationPropertiesReportEndpointProxyTests.java +++ b/spring-boot-actuator/src/test/java/org/springframework/boot/actuate/endpoint/ConfigurationPropertiesReportEndpointProxyTests.java @@ -100,7 +100,7 @@ public class ConfigurationPropertiesReportEndpointProxyTests { } - public static abstract class AbstractExecutor implements Executor { + public abstract static class AbstractExecutor implements Executor { } diff --git a/spring-boot-actuator/src/test/java/org/springframework/boot/actuate/endpoint/mvc/HalBrowserMvcEndpointVanillaIntegrationTests.java b/spring-boot-actuator/src/test/java/org/springframework/boot/actuate/endpoint/mvc/HalBrowserMvcEndpointVanillaIntegrationTests.java index 4781db490c..5b1ee5e49f 100644 --- a/spring-boot-actuator/src/test/java/org/springframework/boot/actuate/endpoint/mvc/HalBrowserMvcEndpointVanillaIntegrationTests.java +++ b/spring-boot-actuator/src/test/java/org/springframework/boot/actuate/endpoint/mvc/HalBrowserMvcEndpointVanillaIntegrationTests.java @@ -110,7 +110,7 @@ public class HalBrowserMvcEndpointVanillaIntegrationTests { if ("/actuator".equals(path)) { continue; } - path = path.startsWith("/") ? path.substring(1) : path; + path = (path.startsWith("/") ? path.substring(1) : path); this.mockMvc.perform(get("/actuator").accept(MediaType.APPLICATION_JSON)) .andExpect(status().isOk()) .andExpect(jsonPath("$._links.%s.href", path).exists()); @@ -126,7 +126,7 @@ public class HalBrowserMvcEndpointVanillaIntegrationTests { if (collections.contains(path)) { continue; } - path = path.length() > 0 ? path : "/"; + path = (path.length() > 0 ? path : "/"); this.mockMvc.perform(get(path).accept(MediaType.APPLICATION_JSON)) .andExpect(status().isOk()).andExpect(jsonPath("$._links.self.href") .value("http://localhost" + endpoint.getPath())); diff --git a/spring-boot-actuator/src/test/java/org/springframework/boot/actuate/health/ElasticsearchHealthIndicatorTests.java b/spring-boot-actuator/src/test/java/org/springframework/boot/actuate/health/ElasticsearchHealthIndicatorTests.java index 2879828095..bd7e88daf8 100644 --- a/spring-boot-actuator/src/test/java/org/springframework/boot/actuate/health/ElasticsearchHealthIndicatorTests.java +++ b/spring-boot-actuator/src/test/java/org/springframework/boot/actuate/health/ElasticsearchHealthIndicatorTests.java @@ -164,7 +164,7 @@ public class ElasticsearchHealthIndicatorTests { assertThat((T) details.get(detail)).isEqualTo(value); } - private final static class StubClusterHealthResponse extends ClusterHealthResponse { + private static final class StubClusterHealthResponse extends ClusterHealthResponse { private final ClusterHealthStatus status; diff --git a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/AutoConfigurationPackages.java b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/AutoConfigurationPackages.java index a2557aa823..ab8cbf3331 100644 --- a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/AutoConfigurationPackages.java +++ b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/AutoConfigurationPackages.java @@ -142,7 +142,7 @@ public abstract class AutoConfigurationPackages { /** * Wrapper for a package import. */ - private final static class PackageImport { + private static final class PackageImport { private final String packageName; diff --git a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/mongo/embedded/EmbeddedMongoAutoConfiguration.java b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/mongo/embedded/EmbeddedMongoAutoConfiguration.java index 0018bdb89a..c82606a2db 100644 --- a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/mongo/embedded/EmbeddedMongoAutoConfiguration.java +++ b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/mongo/embedded/EmbeddedMongoAutoConfiguration.java @@ -228,7 +228,7 @@ public class EmbeddedMongoAutoConfiguration { * A workaround for the lack of a {@code toString} implementation on * {@code GenericFeatureAwareVersion}. */ - private final static class ToStringFriendlyFeatureAwareVersion + private static final class ToStringFriendlyFeatureAwareVersion implements IFeatureAwareVersion { private final String version; diff --git a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/template/PathBasedTemplateAvailabilityProvider.java b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/template/PathBasedTemplateAvailabilityProvider.java index 5079b660ec..e2c15ae482 100644 --- a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/template/PathBasedTemplateAvailabilityProvider.java +++ b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/template/PathBasedTemplateAvailabilityProvider.java @@ -77,7 +77,7 @@ public abstract class PathBasedTemplateAvailabilityProvider return false; } - protected static abstract class TemplateAvailabilityProperties { + protected abstract static class TemplateAvailabilityProperties { private String prefix; diff --git a/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/cache/CacheAutoConfigurationTests.java b/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/cache/CacheAutoConfigurationTests.java index c91a5c686a..292166049f 100644 --- a/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/cache/CacheAutoConfigurationTests.java +++ b/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/cache/CacheAutoConfigurationTests.java @@ -1149,7 +1149,7 @@ public class CacheAutoConfigurationTests { } - static abstract class CacheManagerTestCustomizer + abstract static class CacheManagerTestCustomizer implements CacheManagerCustomizer { private T cacheManager; diff --git a/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/jms/artemis/ArtemisAutoConfigurationTests.java b/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/jms/artemis/ArtemisAutoConfigurationTests.java index 57a15bc076..6b947c3c60 100644 --- a/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/jms/artemis/ArtemisAutoConfigurationTests.java +++ b/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/jms/artemis/ArtemisAutoConfigurationTests.java @@ -317,7 +317,7 @@ public class ArtemisAutoConfigurationTests { return applicationContext; } - private final static class DestinationChecker { + private static final class DestinationChecker { private final JmsTemplate jmsTemplate; diff --git a/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/jndi/TestableInitialContextFactory.java b/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/jndi/TestableInitialContextFactory.java index 7f8241f973..fc7ffe84de 100644 --- a/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/jndi/TestableInitialContextFactory.java +++ b/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/jndi/TestableInitialContextFactory.java @@ -64,7 +64,7 @@ public class TestableInitialContextFactory implements InitialContextFactory { return context; } - private final static class TestableContext extends InitialContext { + private static final class TestableContext extends InitialContext { private final Map bindings = new HashMap(); diff --git a/spring-boot-cli/src/main/java/org/springframework/boot/cli/command/init/InitializrServiceMetadata.java b/spring-boot-cli/src/main/java/org/springframework/boot/cli/command/init/InitializrServiceMetadata.java index d37c9a4c6d..d3b7a7d0cc 100644 --- a/spring-boot-cli/src/main/java/org/springframework/boot/cli/command/init/InitializrServiceMetadata.java +++ b/spring-boot-cli/src/main/java/org/springframework/boot/cli/command/init/InitializrServiceMetadata.java @@ -227,7 +227,7 @@ class InitializrServiceMetadata { return result; } - private final static class MetadataHolder { + private static final class MetadataHolder { private final Map content; diff --git a/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/livereload/Connection.java b/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/livereload/Connection.java index 4881310f90..0188426f8d 100644 --- a/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/livereload/Connection.java +++ b/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/livereload/Connection.java @@ -43,7 +43,7 @@ class Connection { private static final Pattern WEBSOCKET_KEY_PATTERN = Pattern .compile("^Sec-WebSocket-Key:(.*)$", Pattern.MULTILINE); - public final static String WEBSOCKET_GUID = "258EAFA5-E914-47DA-95CA-C5AB0DC85B11"; + public static final String WEBSOCKET_GUID = "258EAFA5-E914-47DA-95CA-C5AB0DC85B11"; private final Socket socket; diff --git a/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/restart/Restarter.java b/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/restart/Restarter.java index 8d23a5ff56..b3756651f5 100644 --- a/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/restart/Restarter.java +++ b/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/restart/Restarter.java @@ -606,7 +606,7 @@ public class Restarter { * Set the restarter instance (useful for testing). * @param instance the instance to set */ - final static void setInstance(Restarter instance) { + static final void setInstance(Restarter instance) { synchronized (INSTANCE_MONITOR) { Restarter.instance = instance; } diff --git a/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/restart/classloader/RestartClassLoader.java b/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/restart/classloader/RestartClassLoader.java index 774eaec060..66214be743 100644 --- a/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/restart/classloader/RestartClassLoader.java +++ b/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/restart/classloader/RestartClassLoader.java @@ -91,9 +91,9 @@ public class RestartClassLoader extends URLClassLoader implements SmartClassLoad } Method classLoadingLockMethod = ReflectionUtils.findMethod(ClassLoader.class, "getClassLoadingLock", String.class); - this.classLoadingLockSupplier = classLoadingLockMethod != null - ? new StandardClassLoadingLockSupplier() - : new Java6ClassLoadingLockSupplier(); + this.classLoadingLockSupplier = (classLoadingLockMethod != null + ? new StandardClassLoadingLockSupplier() + : new Java6ClassLoadingLockSupplier()); } @Override diff --git a/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/tunnel/payload/HttpTunnelPayload.java b/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/tunnel/payload/HttpTunnelPayload.java index 441dcdd623..85afbd2291 100644 --- a/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/tunnel/payload/HttpTunnelPayload.java +++ b/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/tunnel/payload/HttpTunnelPayload.java @@ -45,7 +45,7 @@ public class HttpTunnelPayload { private static final int BUFFER_SIZE = 1024 * 100; - final protected static char[] HEX_CHARS = "0123456789ABCDEF".toCharArray(); + protected static final char[] HEX_CHARS = "0123456789ABCDEF".toCharArray(); private static final Log logger = LogFactory.getLog(HttpTunnelPayload.class); diff --git a/spring-boot-devtools/src/test/java/org/springframework/boot/devtools/restart/SilentExitExceptionHandlerTests.java b/spring-boot-devtools/src/test/java/org/springframework/boot/devtools/restart/SilentExitExceptionHandlerTests.java index 7cc1fc2c4c..d415a43896 100644 --- a/spring-boot-devtools/src/test/java/org/springframework/boot/devtools/restart/SilentExitExceptionHandlerTests.java +++ b/spring-boot-devtools/src/test/java/org/springframework/boot/devtools/restart/SilentExitExceptionHandlerTests.java @@ -76,7 +76,7 @@ public class SilentExitExceptionHandlerTests { } - private static abstract class TestThread extends Thread { + private abstract static class TestThread extends Thread { private Throwable thrown; diff --git a/spring-boot-test/src/main/java/org/springframework/boot/test/json/AbstractJsonMarshalTester.java b/spring-boot-test/src/main/java/org/springframework/boot/test/json/AbstractJsonMarshalTester.java index 2905cea52d..75f10d7e17 100644 --- a/spring-boot-test/src/main/java/org/springframework/boot/test/json/AbstractJsonMarshalTester.java +++ b/spring-boot-test/src/main/java/org/springframework/boot/test/json/AbstractJsonMarshalTester.java @@ -356,7 +356,7 @@ public abstract class AbstractJsonMarshalTester { * * @param The marshaller type */ - protected static abstract class FieldInitializer { + protected abstract static class FieldInitializer { private final Class testerClass; diff --git a/spring-boot-test/src/test/java/org/springframework/boot/test/json/GsonTesterTests.java b/spring-boot-test/src/test/java/org/springframework/boot/test/json/GsonTesterTests.java index 9431bd9f76..79ed24ea51 100644 --- a/spring-boot-test/src/test/java/org/springframework/boot/test/json/GsonTesterTests.java +++ b/spring-boot-test/src/test/java/org/springframework/boot/test/json/GsonTesterTests.java @@ -66,7 +66,7 @@ public class GsonTesterTests extends AbstractJsonMarshalTesterTests { new GsonBuilder().create()); } - static abstract class InitFieldsBaseClass { + abstract static class InitFieldsBaseClass { public GsonTester base; diff --git a/spring-boot-test/src/test/java/org/springframework/boot/test/json/JacksonTesterTests.java b/spring-boot-test/src/test/java/org/springframework/boot/test/json/JacksonTesterTests.java index 8aa4667d92..800e1ceae9 100644 --- a/spring-boot-test/src/test/java/org/springframework/boot/test/json/JacksonTesterTests.java +++ b/spring-boot-test/src/test/java/org/springframework/boot/test/json/JacksonTesterTests.java @@ -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 base; diff --git a/spring-boot/src/main/java/org/springframework/boot/context/ConfigurationWarningsApplicationContextInitializer.java b/spring-boot/src/main/java/org/springframework/boot/context/ConfigurationWarningsApplicationContextInitializer.java index 203ff05083..22190a39aa 100755 --- a/spring-boot/src/main/java/org/springframework/boot/context/ConfigurationWarningsApplicationContextInitializer.java +++ b/spring-boot/src/main/java/org/springframework/boot/context/ConfigurationWarningsApplicationContextInitializer.java @@ -72,7 +72,7 @@ public class ConfigurationWarningsApplicationContextInitializer /** * {@link BeanDefinitionRegistryPostProcessor} to report warnings. */ - protected final static class ConfigurationWarningsPostProcessor + protected static final class ConfigurationWarningsPostProcessor implements PriorityOrdered, BeanDefinitionRegistryPostProcessor { private Check[] checks; diff --git a/spring-boot/src/main/java/org/springframework/boot/context/embedded/undertow/UndertowEmbeddedServletContainer.java b/spring-boot/src/main/java/org/springframework/boot/context/embedded/undertow/UndertowEmbeddedServletContainer.java index ebd424eed9..363deefaed 100644 --- a/spring-boot/src/main/java/org/springframework/boot/context/embedded/undertow/UndertowEmbeddedServletContainer.java +++ b/spring-boot/src/main/java/org/springframework/boot/context/embedded/undertow/UndertowEmbeddedServletContainer.java @@ -354,7 +354,7 @@ public class UndertowEmbeddedServletContainer implements EmbeddedServletContaine /** * An active Undertow port. */ - private final static class Port { + private static final class Port { private final int number; diff --git a/spring-boot/src/main/java/org/springframework/boot/web/client/RestTemplateBuilder.java b/spring-boot/src/main/java/org/springframework/boot/web/client/RestTemplateBuilder.java index 8799e46b29..2f058656f8 100644 --- a/spring-boot/src/main/java/org/springframework/boot/web/client/RestTemplateBuilder.java +++ b/spring-boot/src/main/java/org/springframework/boot/web/client/RestTemplateBuilder.java @@ -642,7 +642,7 @@ public class RestTemplateBuilder { /** * {@link RequestFactoryCustomizer} to call a "set timeout" method. */ - private static abstract class TimeoutRequestFactoryCustomizer + private abstract static class TimeoutRequestFactoryCustomizer implements RequestFactoryCustomizer { private final int timeout; diff --git a/spring-boot/src/main/java/org/springframework/boot/yaml/SpringProfileDocumentMatcher.java b/spring-boot/src/main/java/org/springframework/boot/yaml/SpringProfileDocumentMatcher.java index 05ca45b364..6be0b0d72a 100644 --- a/spring-boot/src/main/java/org/springframework/boot/yaml/SpringProfileDocumentMatcher.java +++ b/spring-boot/src/main/java/org/springframework/boot/yaml/SpringProfileDocumentMatcher.java @@ -131,7 +131,7 @@ public class SpringProfileDocumentMatcher implements DocumentMatcher { /** * Base class for profile matchers. */ - private static abstract class ProfilesMatcher { + private abstract static class ProfilesMatcher { public final MatchStatus matches(Set profiles) { if (CollectionUtils.isEmpty(profiles)) { diff --git a/spring-boot/src/test/java/org/springframework/boot/jackson/JsonComponentModuleTests.java b/spring-boot/src/test/java/org/springframework/boot/jackson/JsonComponentModuleTests.java index ee42dec511..09c842d2d4 100644 --- a/spring-boot/src/test/java/org/springframework/boot/jackson/JsonComponentModuleTests.java +++ b/spring-boot/src/test/java/org/springframework/boot/jackson/JsonComponentModuleTests.java @@ -109,7 +109,7 @@ public class JsonComponentModuleTests { @JsonComponent static class ComponentWithInnerAbstractClass { - private static abstract class AbstractSerializer + private abstract static class AbstractSerializer extends NameAndAgeJsonComponent.Serializer { }