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

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