Order modifiers to align with JLS
This commit also applies Checkstyle ModifierOrder to enforce it. See gh-31368
This commit is contained in:
committed by
Stéphane Nicoll
parent
f60791a8e2
commit
919faa2ce2
@@ -32,7 +32,7 @@ import org.springframework.http.codec.HttpMessageWriter;
|
||||
*/
|
||||
final class DefaultExchangeStrategiesBuilder implements ExchangeStrategies.Builder {
|
||||
|
||||
final static ExchangeStrategies DEFAULT_EXCHANGE_STRATEGIES;
|
||||
static final ExchangeStrategies DEFAULT_EXCHANGE_STRATEGIES;
|
||||
|
||||
static {
|
||||
DefaultExchangeStrategiesBuilder builder = new DefaultExchangeStrategiesBuilder();
|
||||
|
||||
@@ -56,7 +56,7 @@ public class WebClientResponseException extends WebClientException {
|
||||
private final Charset responseCharset;
|
||||
|
||||
@Nullable
|
||||
private transient final HttpRequest request;
|
||||
private final transient HttpRequest request;
|
||||
|
||||
@Nullable
|
||||
private transient Function<ResolvableType, ?> bodyDecodeFunction;
|
||||
|
||||
@@ -40,7 +40,7 @@ abstract class WebClientUtils {
|
||||
/**
|
||||
* Predicate that returns true if an exception should be wrapped.
|
||||
*/
|
||||
public final static Predicate<? super Throwable> WRAP_EXCEPTION_PREDICATE =
|
||||
public static final Predicate<? super Throwable> WRAP_EXCEPTION_PREDICATE =
|
||||
t -> !(t instanceof WebClientException) && !(t instanceof CodecException);
|
||||
|
||||
|
||||
|
||||
@@ -429,7 +429,7 @@ public abstract class RequestPredicates {
|
||||
/**
|
||||
* Extension of {@code RequestPredicate} that can modify the {@code ServerRequest}.
|
||||
*/
|
||||
static abstract class RequestModifyingPredicate implements RequestPredicate {
|
||||
abstract static class RequestModifyingPredicate implements RequestPredicate {
|
||||
|
||||
|
||||
public static RequestModifyingPredicate of(RequestPredicate requestPredicate) {
|
||||
|
||||
@@ -88,7 +88,7 @@ class ControllerMethodResolver {
|
||||
(!AnnotatedElementUtils.hasAnnotation(method, RequestMapping.class) &&
|
||||
AnnotatedElementUtils.hasAnnotation(method, ModelAttribute.class));
|
||||
|
||||
private final static boolean BEAN_VALIDATION_PRESENT =
|
||||
private static final boolean BEAN_VALIDATION_PRESENT =
|
||||
ClassUtils.isPresent("jakarta.validation.Validator", HandlerMethod.class.getClassLoader());
|
||||
|
||||
private static final Log logger = LogFactory.getLog(ControllerMethodResolver.class);
|
||||
|
||||
@@ -388,7 +388,7 @@ public class MessageReaderArgumentResolverTests {
|
||||
}
|
||||
|
||||
|
||||
private static abstract class AbstractParameterizedController<DTO extends Identifiable> {
|
||||
private abstract static class AbstractParameterizedController<DTO extends Identifiable> {
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
public void handleDto(DTO dto) {}
|
||||
|
||||
@@ -179,7 +179,7 @@ abstract class AbstractReactiveWebSocketIntegrationTests {
|
||||
}
|
||||
|
||||
|
||||
static abstract class AbstractHandlerAdapterConfig {
|
||||
abstract static class AbstractHandlerAdapterConfig {
|
||||
|
||||
@Bean
|
||||
public WebSocketHandlerAdapter handlerAdapter() {
|
||||
|
||||
Reference in New Issue
Block a user