src/share/classes/com/sun/jmx/snmp/SnmpCounter64.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>
*** 82,92 ****
/**
* Converts the counter value to its <CODE>Long</CODE> form.
* @return The <CODE>Long</CODE> representation of the value.
*/
public Long toLong() {
! return new Long(value) ;
}
/**
* Converts the counter value to its integer form.
* @return The integer representation of the value.
--- 82,92 ----
/**
* Converts the counter value to its <CODE>Long</CODE> form.
* @return The <CODE>Long</CODE> representation of the value.
*/
public Long toLong() {
! return value;
}
/**
* Converts the counter value to its integer form.
* @return The integer representation of the value.