src/share/classes/sun/management/counter/perf/LongCounterSnapshot.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

@@ -41,11 +41,11 @@
         super(name, u, v, flags);
         this.value = value;
     }
 
     public Object getValue() {
-        return new Long(value);
+        return Long.valueOf(value);
     }
 
     /**
      * Get the value of this Long performance counter
      */