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: otaviojava@java.net

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