Commit 7e04d187 authored by ebruneton's avatar ebruneton

replaced Integer.valueOf with new Integer (for JDK1.4 compatibility)

parent d9c41fd3
......@@ -153,7 +153,7 @@ public class CommentedClassVisitor extends TraceClassVisitor {
public void visitVarInsn(final int opcode, final int var) {
text.add(tab2 + OPCODES[opcode] + " " + var);
if (!raw) {
text.add(Integer.valueOf(var));
text.add(new Integer(var));
}
text.add("\n");
}
......@@ -173,7 +173,7 @@ public class CommentedClassVisitor extends TraceClassVisitor {
public void visitIincInsn(final int var, final int increment) {
text.add(tab2 + "IINC " + var);
if (!raw) {
text.add(Integer.valueOf(var));
text.add(new Integer(var));
}
text.add(" " + increment + "\n");
}
......
......@@ -113,7 +113,7 @@ public class DecompiledClass {
DecompiledMethod m = (DecompiledMethod) o;
int l = m.getErrorLine();
if (l != -1) {
errors.add(Integer.valueOf(l + currentDecompiledLine));
errors.add(new Integer(l + currentDecompiledLine));
}
currentDecompiledLine += m.getLineCount();
} else {
......
......@@ -159,9 +159,9 @@ public class DecompiledMethod {
for (int i = 0; i < localVariables.size(); ++i) {
LocalVariableNode lvNode = (LocalVariableNode) localVariables.get(i);
if (lvNode.start == index.label) {
locals.put(Integer.valueOf(lvNode.index), lvNode.name);
locals.put(new Integer(lvNode.index), lvNode.name);
} else if (lvNode.end == index.label) {
locals.remove(Integer.valueOf(lvNode.index));
locals.remove(new Integer(lvNode.index));
}
}
}
......@@ -182,9 +182,9 @@ public class DecompiledMethod {
} else {
++currentDecompiledLine;
}
Integer csl = Integer.valueOf(currentSourceLine);
Integer cdl = Integer.valueOf(currentDecompiledLine);
Integer ci = Integer.valueOf(currentInsn);
Integer csl = new Integer(currentSourceLine);
Integer cdl = new Integer(currentDecompiledLine);
Integer ci = new Integer(currentInsn);
sourceLines.put(cdl, csl);
if (decompiledLines.get(csl) == null) {
decompiledLines.put(csl, cdl);
......@@ -246,7 +246,7 @@ public class DecompiledMethod {
if (error == null) {
return -1;
}
Integer i = (Integer) insnLines.get(Integer.valueOf(errorInsn));
Integer i = (Integer) insnLines.get(new Integer(errorInsn));
return i == null
? -1
: i.intValue();
......@@ -275,14 +275,14 @@ public class DecompiledMethod {
}
public int getSourceLine(final int decompiledLine) {
Integer i = (Integer) sourceLines.get(Integer.valueOf(decompiledLine));
Integer i = (Integer) sourceLines.get(new Integer(decompiledLine));
return i == null
? -1
: i.intValue();
}
public String getFrame(final int decompiledLine) {
Integer insn = (Integer) insns.get(Integer.valueOf(decompiledLine));
Integer insn = (Integer) insns.get(new Integer(decompiledLine));
if (error != null && insn != null && insn.intValue() == errorInsn) {
return error;
}
......@@ -311,7 +311,7 @@ public class DecompiledMethod {
}
public int getDecompiledLine(final int sourceLine) {
Integer i = (Integer) decompiledLines.get(Integer.valueOf(sourceLine));
Integer i = (Integer) decompiledLines.get(new Integer(sourceLine));
return i == null
? -1
: i.intValue();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment