src/share/classes/com/sun/jndi/ldap/LdapPoolManager.java

Print this page
rev 10195 : 8048267: Replace uses of 'new Long()' with appropriate alternative across core classes
Reviewed-by: chegar, psandoz
Contributed-by: Otavio Santana <otaviojava@java.net>

*** 419,429 **** new PrivilegedAction<Long>() { public Long run() { try { return Long.getLong(propName, defVal); } catch (SecurityException e) { ! return new Long(defVal); } } }); return val.longValue(); } --- 419,429 ---- new PrivilegedAction<Long>() { public Long run() { try { return Long.getLong(propName, defVal); } catch (SecurityException e) { ! return defVal; } } }); return val.longValue(); }