Polish: reorder the modifiers to comply with the Java Language Specification.
This commit is contained in:
committed by
Juergen Hoeller
parent
a02aafe5fe
commit
0f7485b01d
@@ -46,7 +46,7 @@ import org.springframework.web.servlet.mvc.condition.HeadersRequestCondition.Hea
|
||||
*/
|
||||
public final class ConsumesRequestCondition extends AbstractRequestCondition<ConsumesRequestCondition> {
|
||||
|
||||
private final static ConsumesRequestCondition PRE_FLIGHT_MATCH = new ConsumesRequestCondition();
|
||||
private static final ConsumesRequestCondition PRE_FLIGHT_MATCH = new ConsumesRequestCondition();
|
||||
|
||||
private final List<ConsumeMediaTypeExpression> expressions;
|
||||
|
||||
|
||||
@@ -41,7 +41,7 @@ import org.springframework.web.cors.CorsUtils;
|
||||
*/
|
||||
public final class HeadersRequestCondition extends AbstractRequestCondition<HeadersRequestCondition> {
|
||||
|
||||
private final static HeadersRequestCondition PRE_FLIGHT_MATCH = new HeadersRequestCondition();
|
||||
private static final HeadersRequestCondition PRE_FLIGHT_MATCH = new HeadersRequestCondition();
|
||||
|
||||
|
||||
private final Set<HeaderExpression> expressions;
|
||||
|
||||
@@ -174,7 +174,7 @@ class ReactiveTypeHandler {
|
||||
}
|
||||
|
||||
|
||||
private static abstract class AbstractEmitterSubscriber implements Subscriber<Object>, Runnable {
|
||||
private abstract static class AbstractEmitterSubscriber implements Subscriber<Object>, Runnable {
|
||||
|
||||
private final ResponseBodyEmitter emitter;
|
||||
|
||||
|
||||
@@ -136,7 +136,7 @@ public class CssLinkResourceTransformer extends ResourceTransformerSupport {
|
||||
}
|
||||
|
||||
|
||||
protected static abstract class AbstractLinkParser implements LinkParser {
|
||||
protected abstract static class AbstractLinkParser implements LinkParser {
|
||||
|
||||
/** Return the keyword to use to search for links, e.g. "@import", "url(" */
|
||||
protected abstract String getKeyword();
|
||||
|
||||
@@ -45,9 +45,9 @@ import org.springframework.lang.Nullable;
|
||||
*/
|
||||
public class WebJarsResourceResolver extends AbstractResourceResolver {
|
||||
|
||||
private final static String WEBJARS_LOCATION = "META-INF/resources/webjars/";
|
||||
private static final String WEBJARS_LOCATION = "META-INF/resources/webjars/";
|
||||
|
||||
private final static int WEBJARS_LOCATION_LENGTH = WEBJARS_LOCATION.length();
|
||||
private static final int WEBJARS_LOCATION_LENGTH = WEBJARS_LOCATION.length();
|
||||
|
||||
|
||||
private final WebJarAssetLocator webJarAssetLocator;
|
||||
|
||||
@@ -31,7 +31,7 @@ public abstract class AbstractThemeResolver implements ThemeResolver {
|
||||
/**
|
||||
* Out-of-the-box value for the default theme name: "theme".
|
||||
*/
|
||||
public final static String ORIGINAL_DEFAULT_THEME_NAME = "theme";
|
||||
public static final String ORIGINAL_DEFAULT_THEME_NAME = "theme";
|
||||
|
||||
private String defaultThemeName = ORIGINAL_DEFAULT_THEME_NAME;
|
||||
|
||||
|
||||
@@ -42,7 +42,7 @@ import org.springframework.web.util.WebUtils;
|
||||
*/
|
||||
public class CookieThemeResolver extends CookieGenerator implements ThemeResolver {
|
||||
|
||||
public final static String ORIGINAL_DEFAULT_THEME_NAME = "theme";
|
||||
public static final String ORIGINAL_DEFAULT_THEME_NAME = "theme";
|
||||
|
||||
/**
|
||||
* Name of the request attribute that holds the theme name. Only used
|
||||
|
||||
@@ -64,7 +64,7 @@ public class ResourceBundleViewResolver extends AbstractCachingViewResolver
|
||||
implements Ordered, InitializingBean, DisposableBean {
|
||||
|
||||
/** The default basename if no other basename is supplied. */
|
||||
public final static String DEFAULT_BASENAME = "views";
|
||||
public static final String DEFAULT_BASENAME = "views";
|
||||
|
||||
|
||||
private int order = Integer.MAX_VALUE; // default: same as non-Ordered
|
||||
|
||||
@@ -59,7 +59,7 @@ public class XmlViewResolver extends AbstractCachingViewResolver
|
||||
implements Ordered, InitializingBean, DisposableBean {
|
||||
|
||||
/** Default if no other location is supplied */
|
||||
public final static String DEFAULT_LOCATION = "/WEB-INF/views.xml";
|
||||
public static final String DEFAULT_LOCATION = "/WEB-INF/views.xml";
|
||||
|
||||
|
||||
private int order = Integer.MAX_VALUE; // default: same as non-Ordered
|
||||
|
||||
Reference in New Issue
Block a user