src/share/classes/sun/security/jgss/wrapper/GSSNameElement.java

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

@@ -201,11 +201,11 @@
             return false;
         }
     }
 
     public int hashCode() {
-        return new Long(pName).hashCode();
+        return Long.valueOf(pName).hashCode();
     }
 
     public byte[] export() throws GSSException {
         byte[] nameVal = cStub.exportName(pName);