Merge pull request #11681 from igor-suhorukov:master

* pr/11681:
  Polish "Fix modifiers order"
  Fix modifiers order
pull/11692/head
Stephane Nicoll 7 years ago
commit 890c28dfdc

@ -91,7 +91,7 @@ public final class EndpointRequest {
* The {@link ServerWebExchangeMatcher} used to match against {@link Endpoint actuator
* endpoints}.
*/
public final static class EndpointServerWebExchangeMatcher
public static final class EndpointServerWebExchangeMatcher
extends ApplicationContextServerWebExchangeMatcher<EndpointPathProvider> {
private final List<Object> includes;

@ -89,7 +89,7 @@ public final class EndpointRequest {
/**
* The request matcher used to match against {@link Endpoint actuator endpoints}.
*/
public final static class EndpointRequestMatcher
public static final class EndpointRequestMatcher
extends ApplicationContextRequestMatcher<EndpointPathProvider> {
private final List<Object> includes;

@ -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.
@ -109,7 +109,7 @@ class ServletManagementChildContextConfiguration {
}
static abstract class AccessLogCustomizer implements Ordered {
abstract static class AccessLogCustomizer implements Ordered {
protected String customizePrefix(String prefix) {
return "management_" + prefix;

@ -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.
@ -105,7 +105,7 @@ public class ScheduledTasksEndpoint {
/**
* Base class for descriptions of a {@link Task}.
*/
public static abstract class TaskDescription {
public abstract static class TaskDescription {
private static final Map<Class<? extends Task>, Function<Task, TaskDescription>> DESCRIBERS = new LinkedHashMap<>();

@ -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.
@ -139,7 +139,7 @@ public abstract class AutoConfigurationPackages {
/**
* Wrapper for a package import.
*/
private final static class PackageImport {
private static final class PackageImport {
private final String packageName;

@ -537,7 +537,7 @@ public class RabbitProperties {
}
public static abstract class AmqpContainer {
public abstract static class AmqpContainer {
/**
* Whether to start the container automatically on startup.

@ -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.
@ -246,7 +246,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;

@ -127,7 +127,7 @@ public final class StaticResourceRequest {
/**
* The request matcher used to match against resource {@link Location Locations}.
*/
public final static class StaticResourceRequestMatcher
public static final class StaticResourceRequestMatcher
extends ApplicationContextRequestMatcher<ServerProperties> {
private final Set<Location> locations;

@ -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.
@ -104,7 +104,7 @@ public class SessionAutoConfiguration {
/**
* {@link ImportSelector} base class to add {@link StoreType} configuration classes.
*/
static abstract class SessionConfigurationImportSelector implements ImportSelector {
abstract static class SessionConfigurationImportSelector implements ImportSelector {
protected final String[] selectImports(AnnotationMetadata importingClassMetadata,
WebApplicationType webApplicationType) {
@ -153,7 +153,7 @@ public class SessionAutoConfiguration {
* Base class for beans used to validate that only one supported implementation is
* available in the classpath when the store-type property is not set.
*/
static abstract class AbstractSessionRepositoryImplementationValidator {
abstract static class AbstractSessionRepositoryImplementationValidator {
private final List<String> candidates;
@ -233,7 +233,7 @@ public class SessionAutoConfiguration {
/**
* Base class for validating that a (reactive) session repository bean exists.
*/
static abstract class AbstractSessionRepositoryValidator {
abstract static class AbstractSessionRepositoryValidator {
private final SessionProperties sessionProperties;

@ -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.
@ -74,7 +74,7 @@ public abstract class PathBasedTemplateAvailabilityProvider
return false;
}
protected static abstract class TemplateAvailabilityProperties {
protected abstract static class TemplateAvailabilityProperties {
private String prefix;

@ -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.
@ -227,7 +227,7 @@ class InitializrServiceMetadata {
return result;
}
private final static class MetadataHolder<K, T> {
private static final class MetadataHolder<K, T> {
private final Map<K, T> content;

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

@ -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.
@ -45,7 +45,7 @@ public class HttpTunnelPayload {
private static final int BUFFER_SIZE = 1024 * 100;
final protected static char[] HEX_CHARS = "0123456789ABCDEF".toCharArray();
protected final static char[] HEX_CHARS = "0123456789ABCDEF".toCharArray();
private static final Log logger = LogFactory.getLog(HttpTunnelPayload.class);

@ -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.
@ -73,7 +73,7 @@ public class FilteredClassLoader extends URLClassLoader {
/**
* Filter to restrict the classes that can be loaded.
*/
public final static class ClassFilter implements Predicate<String> {
public static final class ClassFilter implements Predicate<String> {
private Class<?>[] hiddenClasses;
@ -100,7 +100,7 @@ public class FilteredClassLoader extends URLClassLoader {
/**
* Filter to restrict the packages that can be loaded.
*/
public final static class PackageFilter implements Predicate<String> {
public static final class PackageFilter implements Predicate<String> {
private final String[] hiddenPackages;

@ -354,7 +354,7 @@ public abstract class AbstractJsonMarshalTester<T> {
*
* @param <M> The marshaller type
*/
protected static abstract class FieldInitializer<M> {
protected abstract static class FieldInitializer<M> {
private final Class<?> testerClass;

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

@ -169,7 +169,7 @@ public final class PropertyMapper {
* A source that is in the process of being mapped.
* @param <T> the source type
*/
public final static class Source<T> {
public static final class Source<T> {
private final Supplier<T> supplier;

@ -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.
@ -94,7 +94,7 @@ public class TextResourceOrigin implements Origin {
/**
* A location (line and column number) within the resource.
*/
public final static class Location {
public static final class Location {
private final int line;

@ -630,7 +630,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;

@ -321,7 +321,7 @@ public class UndertowServletWebServer implements WebServer {
/**
* An active Undertow port.
*/
private final static class Port {
private static final class Port {
private final int number;

@ -233,7 +233,7 @@ public class UndertowWebServer implements WebServer {
/**
* An active Undertow port.
*/
private final static class Port {
private static final class Port {
private final int number;

@ -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.
@ -124,7 +124,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<String> profiles) {
if (CollectionUtils.isEmpty(profiles)) {

Loading…
Cancel
Save