From afded24b62d9a059b3f8ada2a38284c695c58809 Mon Sep 17 00:00:00 2001 From: Luke Taylor Date: Tue, 15 Jan 2008 17:22:10 +0000 Subject: [PATCH] Removed accidentally committed JDK 1.5 methods (Integer.valueOf()). --- .../security/userdetails/jdbc/JdbcUserDetailsManager.java | 2 +- .../org/springframework/security/util/PortResolverImpl.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/core/src/main/java/org/springframework/security/userdetails/jdbc/JdbcUserDetailsManager.java b/core/src/main/java/org/springframework/security/userdetails/jdbc/JdbcUserDetailsManager.java index 101ade8f1f..13929f777d 100644 --- a/core/src/main/java/org/springframework/security/userdetails/jdbc/JdbcUserDetailsManager.java +++ b/core/src/main/java/org/springframework/security/userdetails/jdbc/JdbcUserDetailsManager.java @@ -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)); } } diff --git a/core/src/main/java/org/springframework/security/util/PortResolverImpl.java b/core/src/main/java/org/springframework/security/util/PortResolverImpl.java index 19de64a1ad..40e53e93d3 100644 --- a/core/src/main/java/org/springframework/security/util/PortResolverImpl.java +++ b/core/src/main/java/org/springframework/security/util/PortResolverImpl.java @@ -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) {