Skip to content

Fix modifiers order #11681

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ public static EndpointServerWebExchangeMatcher to(String... endpoints) {
* 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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ public static EndpointRequestMatcher to(String... endpoints) {
/**
* 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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ protected void customize(ConfigurableServletWebServerFactory webServerFactory,

}

static abstract class AccessLogCustomizer implements Ordered {
abstract static class AccessLogCustomizer implements Ordered {

protected String customizePrefix(String prefix) {
return "management_" + prefix;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ public List<TaskDescription> getFixedRate() {
/**
* 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<>();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ public Set<Object> determineImports(AnnotationMetadata metadata) {
/**
* Wrapper for a package import.
*/
private final static class PackageImport {
private static final class PackageImport {

private final String packageName;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -537,7 +537,7 @@ public DirectContainer getDirect() {

}

public static abstract class AmqpContainer {
public abstract static class AmqpContainer {

/**
* Whether to start the container automatically on startup.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ public EmbeddedReactiveMongoDependencyConfiguration() {
* 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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ Stream<String> getPatterns() {
/**
* 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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ static class ReactiveSessionRepositoryConfiguration {
/**
* {@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) {
Expand Down Expand Up @@ -153,7 +153,7 @@ public String[] selectImports(AnnotationMetadata importingClassMetadata) {
* 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;

Expand Down Expand Up @@ -233,7 +233,7 @@ static class ReactiveSessionRepositoryImplementationValidator
/**
* Base class for validating that a (reactive) session repository bean exists.
*/
static abstract class AbstractSessionRepositoryValidator {
abstract static class AbstractSessionRepositoryValidator {

private final SessionProperties sessionProperties;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ private boolean isTemplateAvailable(String view, ResourceLoader resourceLoader,
return false;
}

protected static abstract class TemplateAvailabilityProperties {
protected abstract static class TemplateAvailabilityProperties {

private String prefix;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ private Map<String, String> parseStringItems(JSONObject json) throws JSONExcepti
return result;
}

private final static class MetadataHolder<K, T> {
private static final class MetadataHolder<K, T> {

private final Map<K, T> content;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ protected Class<?> loadClass(String name, boolean resolve)
/**
* 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;

Expand All @@ -100,7 +100,7 @@ public static ClassFilter of(Class<?>... hiddenClasses) {
/**
* 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;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ protected abstract T readObject(Reader reader, ResolvableType type)
*
* @param <M> The marshaller type
*/
protected static abstract class FieldInitializer<M> {
protected abstract static class FieldInitializer<M> {

private final Class<?> testerClass;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ protected Check[] getChecks() {
/**
* {@link BeanDefinitionRegistryPostProcessor} to report warnings.
*/
protected final static class ConfigurationWarningsPostProcessor
protected static final class ConfigurationWarningsPostProcessor
implements PriorityOrdered, BeanDefinitionRegistryPostProcessor {

private Check[] checks;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ public interface SourceOperator {
* 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;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ public String toString() {
/**
* A location (line and column number) within the resource.
*/
public final static class Location {
public static final class Location {

private final int line;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -630,7 +630,7 @@ private interface RequestFactoryCustomizer {
/**
* {@link RequestFactoryCustomizer} to call a "set timeout" method.
*/
private static abstract class TimeoutRequestFactoryCustomizer
private abstract static class TimeoutRequestFactoryCustomizer
implements RequestFactoryCustomizer {

private final int timeout;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ public int getPort() {
/**
* An active Undertow port.
*/
private final static class Port {
private static final class Port {

private final int number;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ public int getPort() {
/**
* An active Undertow port.
*/
private final static class Port {
private static final class Port {

private final int number;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ enum ProfileType {
/**
* 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)) {
Expand Down