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

@@ -743,11 +743,11 @@
 
     public void lconst(final long cst) {
         if (cst == 0L || cst == 1L) {
             mv.visitInsn(Opcodes.LCONST_0 + (int) cst);
         } else {
-            mv.visitLdcInsn(new Long(cst));
+            mv.visitLdcInsn(cst);
         }
     }
 
     public void fconst(final float cst) {
         int bits = Float.floatToIntBits(cst);