src/share/classes/sun/jvmstat/perfdata/monitor/PerfLongMonitor.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>
@@ -64,11 +64,11 @@
*
* @return Object - the current value of the the LongInstrument. The
* return type is guaranteed to be of type Long.
*/
public Object getValue() {
- return new Long(lb.get(0));
+ return Long.valueOf(lb.get(0));
}
/**
* Return the current value of the LongInstrument as an long.
*