src/share/classes/sun/management/snmp/jvminstr/JvmRuntimeImpl.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
*** 257,274 ****
/**
* Getter for the "JvmRTUptimeMs" variable.
*/
public Long getJvmRTUptimeMs() throws SnmpStatusException {
! return new Long(getRuntimeMXBean().getUptime());
}
/**
* Getter for the "JvmRTStartTimeMs" variable.
*/
public Long getJvmRTStartTimeMs() throws SnmpStatusException {
! return new Long(getRuntimeMXBean().getStartTime());
}
/**
* Getter for the "JvmRTSpecVersion" variable.
*/
--- 257,274 ----
/**
* Getter for the "JvmRTUptimeMs" variable.
*/
public Long getJvmRTUptimeMs() throws SnmpStatusException {
! return getRuntimeMXBean().getUptime();
}
/**
* Getter for the "JvmRTStartTimeMs" variable.
*/
public Long getJvmRTStartTimeMs() throws SnmpStatusException {
! return getRuntimeMXBean().getStartTime();
}
/**
* Getter for the "JvmRTSpecVersion" variable.
*/