Removed accidentally committed JDK 1.5 methods (Integer.valueOf()).

This commit is contained in:
Luke Taylor 2008-01-15 17:22:10 +00:00
parent a4a7813ddb
commit afded24b62
2 changed files with 3 additions and 3 deletions

View File

@ -521,7 +521,7 @@ public class JdbcUserDetailsManager extends JdbcDaoImpl implements UserDetailsMa
} }
protected Object mapRow(ResultSet rs, int rowNum) throws SQLException { protected Object mapRow(ResultSet rs, int rowNum) throws SQLException {
return Integer.valueOf(rs.getInt(1)); return new Integer(rs.getInt(1));
} }
} }

View File

@ -51,10 +51,10 @@ public class PortResolverImpl implements PortResolver {
String scheme = request.getScheme().toLowerCase(); String scheme = request.getScheme().toLowerCase();
if ("http".equals(scheme)) { if ("http".equals(scheme)) {
portLookup = portMapper.lookupHttpPort(Integer.valueOf(serverPort)); portLookup = portMapper.lookupHttpPort(new Integer(serverPort));
} else if ("https".equals(scheme)) { } else if ("https".equals(scheme)) {
portLookup = portMapper.lookupHttpsPort(Integer.valueOf(serverPort)); portLookup = portMapper.lookupHttpsPort(new Integer(serverPort));
} }
if (portLookup != null) { if (portLookup != null) {