diff options
Diffstat (limited to 'src/main/java/cuchaz/enigma/convert/ClassIdentity.java')
| -rw-r--r-- | src/main/java/cuchaz/enigma/convert/ClassIdentity.java | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/main/java/cuchaz/enigma/convert/ClassIdentity.java b/src/main/java/cuchaz/enigma/convert/ClassIdentity.java index 57cbc06..0960c86 100644 --- a/src/main/java/cuchaz/enigma/convert/ClassIdentity.java +++ b/src/main/java/cuchaz/enigma/convert/ClassIdentity.java | |||
| @@ -273,20 +273,20 @@ public class ClassIdentity { | |||
| 273 | // update the hash with the opcode | 273 | // update the hash with the opcode |
| 274 | int opcode = iter.byteAt(pos); | 274 | int opcode = iter.byteAt(pos); |
| 275 | digest.update((byte) opcode); | 275 | digest.update((byte) opcode); |
| 276 | 276 | int constIndex; | |
| 277 | switch (opcode) { | 277 | switch (opcode) { |
| 278 | case Opcode.LDC: { | 278 | case Opcode.LDC: |
| 279 | int constIndex = iter.byteAt(pos + 1); | 279 | constIndex = iter.byteAt(pos + 1); |
| 280 | updateHashWithConstant(digest, constants, constIndex); | 280 | updateHashWithConstant(digest, constants, constIndex); |
| 281 | } | 281 | break; |
| 282 | break; | ||
| 283 | 282 | ||
| 284 | case Opcode.LDC_W: | 283 | case Opcode.LDC_W: |
| 285 | case Opcode.LDC2_W: { | 284 | case Opcode.LDC2_W: |
| 286 | int constIndex = (iter.byteAt(pos + 1) << 8) | iter.byteAt(pos + 2); | 285 | constIndex = (iter.byteAt(pos + 1) << 8) | iter.byteAt(pos + 2); |
| 287 | updateHashWithConstant(digest, constants, constIndex); | 286 | updateHashWithConstant(digest, constants, constIndex); |
| 288 | } | 287 | break; |
| 289 | break; | 288 | default: |
| 289 | break; | ||
| 290 | } | 290 | } |
| 291 | } | 291 | } |
| 292 | 292 | ||