src/share/classes/com/sun/tools/example/debug/tty/Commands.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

*** 933,954 **** methodInfo = MessageOutput.format("native method"); } else if (lineNumber != -1) { try { methodInfo = loc.sourceName() + MessageOutput.format("line number", ! new Object [] {new Long(lineNumber)}); } catch (AbsentInformationException e) { methodInfo = MessageOutput.format("unknown"); } } if (pc != -1) { MessageOutput.println("stack frame dump with pc", new Object [] {new Integer(frameNumber + 1), meth.declaringType().name(), meth.name(), methodInfo, ! new Long(pc)}); } else { MessageOutput.println("stack frame dump", new Object [] {new Integer(frameNumber + 1), meth.declaringType().name(), meth.name(), --- 933,954 ---- methodInfo = MessageOutput.format("native method"); } else if (lineNumber != -1) { try { methodInfo = loc.sourceName() + MessageOutput.format("line number", ! new Object [] {Long.valueOf(lineNumber)}); } catch (AbsentInformationException e) { methodInfo = MessageOutput.format("unknown"); } } if (pc != -1) { MessageOutput.println("stack frame dump with pc", new Object [] {new Integer(frameNumber + 1), meth.declaringType().name(), meth.name(), methodInfo, ! Long.valueOf(pc)}); } else { MessageOutput.println("stack frame dump", new Object [] {new Integer(frameNumber + 1), meth.declaringType().name(), meth.name(),