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: Otavio Santana <otaviojava@java.net>

*** 68,86 **** /** * 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()); } /** * 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()); } /** * Getter for the "JvmMemManagerIndex" variable. */ --- 68,86 ---- /** * Getter for the "JvmMemGCTimeMs" variable. */ // Don't bother to uses the request contextual cache for this. public Long getJvmMemGCTimeMs() throws SnmpStatusException { ! 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 gcm.getCollectionCount(); } /** * Getter for the "JvmMemManagerIndex" variable. */