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