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,51 **** super(name, u, v, flags); this.value = value; } public Object getValue() { ! return new Long(value); } /** * Get the value of this Long performance counter */ --- 41,51 ---- super(name, u, v, flags); this.value = value; } public Object getValue() { ! return Long.valueOf(value); } /** * Get the value of this Long performance counter */