src/share/classes/com/sun/tools/hat/internal/model/Snapshot.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

*** 581,591 **** // Internals only below this point private Number makeId(long id) { if (identifierSize == 4) { return new Integer((int)id); } else { ! return new Long(id); } } private void putInClassesMap(JavaClass c) { String name = c.getName(); --- 581,591 ---- // Internals only below this point private Number makeId(long id) { if (identifierSize == 4) { return new Integer((int)id); } else { ! return id; } } private void putInClassesMap(JavaClass c) { String name = c.getName();