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,11 +128,11 @@
     /**
      * 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) ;
+        return value;
     }
 
     /**
      * Converts the integer value to its integer form.
      * @return The integer representation of the value.