src/share/classes/jdk/internal/org/objectweb/asm/ClassReader.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

@@ -2500,11 +2500,11 @@
         case ClassWriter.INT:
             return new Integer(readInt(index));
         case ClassWriter.FLOAT:
             return new Float(Float.intBitsToFloat(readInt(index)));
         case ClassWriter.LONG:
-            return new Long(readLong(index));
+            return Long.valueOf(readLong(index));
         case ClassWriter.DOUBLE:
             return new Double(Double.longBitsToDouble(readLong(index)));
         case ClassWriter.CLASS:
             return Type.getObjectType(readUTF8(index, buf));
         case ClassWriter.STR: