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: Otavio Santana <otaviojava@java.net>
*** 201,211 ****
return false;
}
}
public int hashCode() {
! return new Long(pName).hashCode();
}
public byte[] export() throws GSSException {
byte[] nameVal = cStub.exportName(pName);
--- 201,211 ----
return false;
}
}
public int hashCode() {
! return Long.valueOf(pName).hashCode();
}
public byte[] export() throws GSSException {
byte[] nameVal = cStub.exportName(pName);