src/share/classes/sun/tools/tree/IncDecExpression.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>
@@ -129,11 +129,11 @@
case TC_INT:
asm.add(where, opc_ldc, new Integer(1));
asm.add(where, inc ? opc_iadd : opc_isub);
break;
case TC_LONG:
- asm.add(where, opc_ldc2_w, new Long(1));
+ asm.add(where, opc_ldc2_w, 1L);
asm.add(where, inc ? opc_ladd : opc_lsub);
break;
case TC_FLOAT:
asm.add(where, opc_ldc, new Float(1));
asm.add(where, inc ? opc_fadd : opc_fsub);