mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-06-25 21:42:17 +00:00
Removed accidentally committed JDK 1.5 methods (Integer.valueOf()).
This commit is contained in:
parent
a4a7813ddb
commit
afded24b62
@ -521,7 +521,7 @@ public class JdbcUserDetailsManager extends JdbcDaoImpl implements UserDetailsMa
|
||||
}
|
||||
|
||||
protected Object mapRow(ResultSet rs, int rowNum) throws SQLException {
|
||||
return Integer.valueOf(rs.getInt(1));
|
||||
return new Integer(rs.getInt(1));
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -51,10 +51,10 @@ public class PortResolverImpl implements PortResolver {
|
||||
String scheme = request.getScheme().toLowerCase();
|
||||
|
||||
if ("http".equals(scheme)) {
|
||||
portLookup = portMapper.lookupHttpPort(Integer.valueOf(serverPort));
|
||||
portLookup = portMapper.lookupHttpPort(new Integer(serverPort));
|
||||
|
||||
} else if ("https".equals(scheme)) {
|
||||
portLookup = portMapper.lookupHttpsPort(Integer.valueOf(serverPort));
|
||||
portLookup = portMapper.lookupHttpsPort(new Integer(serverPort));
|
||||
}
|
||||
|
||||
if (portLookup != null) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user