summaryrefslogtreecommitdiff
path: root/src/main/java/cuchaz/enigma/convert/ClassIdentity.java
diff options
context:
space:
mode:
authorGravatar Thog2016-09-13 11:35:52 +0200
committerGravatar Thog2016-09-13 11:38:05 +0200
commitfc530f49fdbf773c497e3714c1f8e7c79020e0a3 (patch)
tree7bb063e608295d6c7885b3d5fb0aace3f7fefec7 /src/main/java/cuchaz/enigma/convert/ClassIdentity.java
parentfix method/argument renaming edge cases, add method/argument name rebuilder, ... (diff)
downloadenigma-fork-fc530f49fdbf773c497e3714c1f8e7c79020e0a3.tar.gz
enigma-fork-fc530f49fdbf773c497e3714c1f8e7c79020e0a3.tar.xz
enigma-fork-fc530f49fdbf773c497e3714c1f8e7c79020e0a3.zip
Make sure to use UTF-8 in any case for I/O, change "Mark as deobfuscated" key and clean up
Diffstat (limited to 'src/main/java/cuchaz/enigma/convert/ClassIdentity.java')
-rw-r--r--src/main/java/cuchaz/enigma/convert/ClassIdentity.java18
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