Rename Format.payloadFormat to isPayloadFormat

This commit is contained in:
Ben Gruver 2013-04-07 20:28:10 -07:00
parent 77ebf6842f
commit e6d10fc788
2 changed files with 4 additions and 4 deletions

View File

@ -69,14 +69,14 @@ public enum Format {
UnresolvedOdexInstruction(-1); UnresolvedOdexInstruction(-1);
public final int size; public final int size;
public final boolean payloadFormat; public final boolean isPayloadFormat;
private Format(int size) { private Format(int size) {
this(size, false); this(size, false);
} }
private Format(int size, boolean payloadFormat) { private Format(int size, boolean isPayloadFormat) {
this.size = size; this.size = size;
this.payloadFormat = payloadFormat; this.isPayloadFormat = isPayloadFormat;
} }
} }

View File

@ -320,7 +320,7 @@ public enum Opcode
opcodesByName = new HashMap<Integer, Opcode>(); opcodesByName = new HashMap<Integer, Opcode>();
for (Opcode opcode: Opcode.values()) { for (Opcode opcode: Opcode.values()) {
if (!opcode.format.payloadFormat) { if (!opcode.format.isPayloadFormat) {
//INVOKE_DIRECT_EMPTY was changed to INVOKE_OBJECT_INIT_RANGE in ICS //INVOKE_DIRECT_EMPTY was changed to INVOKE_OBJECT_INIT_RANGE in ICS
if (opcode != INVOKE_DIRECT_EMPTY) { if (opcode != INVOKE_DIRECT_EMPTY) {
opcodesByValue[opcode.value] = opcode; opcodesByValue[opcode.value] = opcode;