src/share/classes/com/sun/jmx/snmp/SnmpInt.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

*** 128,138 **** /** * Converts the integer value to its <CODE>Long</CODE> form. * @return The <CODE>Long</CODE> representation of the value. */ public Long toLong() { ! return new Long(value) ; } /** * Converts the integer value to its integer form. * @return The integer representation of the value. --- 128,138 ---- /** * Converts the integer value to its <CODE>Long</CODE> form. * @return The <CODE>Long</CODE> representation of the value. */ public Long toLong() { ! return value; } /** * Converts the integer value to its integer form. * @return The integer representation of the value.