src/share/classes/sun/management/snmp/jvminstr/JvmMemGCEntryImpl.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
@@ -68,19 +68,19 @@
/**
* Getter for the "JvmMemGCTimeMs" variable.
*/
// Don't bother to uses the request contextual cache for this.
public Long getJvmMemGCTimeMs() throws SnmpStatusException {
- return new Long(gcm.getCollectionTime());
+ return gcm.getCollectionTime();
}
/**
* Getter for the "JvmMemGCCount" variable.
*/
// Don't bother to uses the request contextual cache for this.
public Long getJvmMemGCCount() throws SnmpStatusException {
- return new Long(gcm.getCollectionCount());
+ return gcm.getCollectionCount();
}
/**
* Getter for the "JvmMemManagerIndex" variable.
*/