From fc530f49fdbf773c497e3714c1f8e7c79020e0a3 Mon Sep 17 00:00:00 2001 From: Thog Date: Tue, 13 Sep 2016 11:35:52 +0200 Subject: Make sure to use UTF-8 in any case for I/O, change "Mark as deobfuscated" key and clean up --- src/main/java/cuchaz/enigma/convert/ClassIdentity.java | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'src/main/java/cuchaz/enigma/convert/ClassIdentity.java') 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 { // update the hash with the opcode int opcode = iter.byteAt(pos); digest.update((byte) opcode); - + int constIndex; switch (opcode) { - case Opcode.LDC: { - int constIndex = iter.byteAt(pos + 1); + case Opcode.LDC: + constIndex = iter.byteAt(pos + 1); updateHashWithConstant(digest, constants, constIndex); - } - break; + break; case Opcode.LDC_W: - case Opcode.LDC2_W: { - int constIndex = (iter.byteAt(pos + 1) << 8) | iter.byteAt(pos + 2); + case Opcode.LDC2_W: + constIndex = (iter.byteAt(pos + 1) << 8) | iter.byteAt(pos + 2); updateHashWithConstant(digest, constants, constIndex); - } - break; + break; + default: + break; } } -- cgit v1.2.3