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

@@ -420,11 +420,11 @@
      */
     public void push(final long value) {
         if (value == 0L || value == 1L) {
             mv.visitInsn(Opcodes.LCONST_0 + (int) value);
         } else {
-            mv.visitLdcInsn(new Long(value));
+            mv.visitLdcInsn(value);
         }
     }
 
     /**
      * Generates the instruction to push the given value on the stack.