Fix an incorrectly formatted offset to the debug info, in the dump for a code item

This commit is contained in:
Ben Gruver 2011-09-20 22:38:51 -04:00
parent f8637cedd5
commit 82cdb8a8af

View File

@ -234,7 +234,7 @@ public class CodeItem extends Item<CodeItem> {
if (debugInfo == null) { if (debugInfo == null) {
out.annotate(4, "debug_info_off:"); out.annotate(4, "debug_info_off:");
} else { } else {
out.annotate(4, "debug_info_off: 0x" + debugInfo.getOffset()); out.annotate(4, "debug_info_off: 0x" + Integer.toHexString(debugInfo.getOffset()));
} }
out.annotate(4, "insns_size: 0x" + Integer.toHexString(instructionsLength) + " (" + out.annotate(4, "insns_size: 0x" + Integer.toHexString(instructionsLength) + " (" +
(instructionsLength) + ")"); (instructionsLength) + ")");