Use Ordered.HIGHEST_PRECEDENCE constants
Use Ordered.HIGHEST_PRECEDENCE rather than Integer.MIN_VALUE. Closes gh-4335
This commit is contained in:
@@ -61,7 +61,7 @@ public class ContextIdApplicationContextInitializer implements
|
||||
|
||||
private final String name;
|
||||
|
||||
private int order = Integer.MAX_VALUE - 10;
|
||||
private int order = Ordered.LOWEST_PRECEDENCE - 10;
|
||||
|
||||
public ContextIdApplicationContextInitializer() {
|
||||
this(NAME_PATTERN);
|
||||
|
||||
@@ -30,7 +30,7 @@ import org.springframework.web.context.ConfigurableWebApplicationContext;
|
||||
public class ServletContextApplicationContextInitializer implements
|
||||
ApplicationContextInitializer<ConfigurableWebApplicationContext>, Ordered {
|
||||
|
||||
private int order = Integer.MIN_VALUE;
|
||||
private int order = Ordered.HIGHEST_PRECEDENCE;
|
||||
|
||||
private final ServletContext servletContext;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user