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

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