avoid unnecessary autoboxing
This commit is contained in:
committed by
Juergen Hoeller
parent
b8d72516e1
commit
e6020ed377
@@ -76,7 +76,7 @@ class ViewControllerBeanDefinitionParser implements BeanDefinitionParser {
|
||||
|
||||
HttpStatus statusCode = null;
|
||||
if (element.hasAttribute("status-code")) {
|
||||
int statusValue = Integer.valueOf(element.getAttribute("status-code"));
|
||||
int statusValue = Integer.parseInt(element.getAttribute("status-code"));
|
||||
statusCode = HttpStatus.valueOf(statusValue);
|
||||
}
|
||||
|
||||
|
||||
@@ -121,7 +121,7 @@ public class WebContentInterceptor extends WebContentGenerator implements Handle
|
||||
Enumeration<?> propNames = cacheMappings.propertyNames();
|
||||
while (propNames.hasMoreElements()) {
|
||||
String path = (String) propNames.nextElement();
|
||||
int cacheSeconds = Integer.valueOf(cacheMappings.getProperty(path));
|
||||
int cacheSeconds = Integer.parseInt(cacheMappings.getProperty(path));
|
||||
this.cacheMappings.put(path, cacheSeconds);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user