Use Ordered.HIGHEST_PRECEDENCE constants

Use Ordered.HIGHEST_PRECEDENCE rather than Integer.MIN_VALUE.

Closes gh-4335
This commit is contained in:
Johnny Lim
2015-11-10 12:13:15 -08:00
committed by Phillip Webb
parent 9f8eda18b7
commit 83e8bfedb2
4 changed files with 5 additions and 4 deletions

View File

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

View File

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