diff options
| author | 2018-05-16 09:06:07 +0100 | |
|---|---|---|
| committer | 2018-05-16 09:06:07 +0100 | |
| commit | 5d23663b1c37b08c1a0a91cffc15e26b02e8d3d0 (patch) | |
| tree | baffa82086f66f201740b79d53443fb945a2cfe5 | |
| parent | Add support for MTH-ARG in tiny mappings reader (diff) | |
| download | enigma-5d23663b1c37b08c1a0a91cffc15e26b02e8d3d0.tar.gz enigma-5d23663b1c37b08c1a0a91cffc15e26b02e8d3d0.tar.xz enigma-5d23663b1c37b08c1a0a91cffc15e26b02e8d3d0.zip | |
Fix method parameter info sometimes causing the exported class to become invalid.
This fixes intelij not reading the class successfully, thus preventing it from being used.
| -rw-r--r-- | build.gradle | 2 | ||||
| -rw-r--r-- | src/main/java/cuchaz/enigma/bytecode/MethodParametersAttribute.java | 2 |
2 files changed, 1 insertions, 3 deletions
diff --git a/build.gradle b/build.gradle index 4669a2ac..c65ccca2 100644 --- a/build.gradle +++ b/build.gradle | |||
| @@ -65,7 +65,7 @@ configurations { | |||
| 65 | 65 | ||
| 66 | dependencies { | 66 | dependencies { |
| 67 | compile 'com.google.guava:guava:21.+' | 67 | compile 'com.google.guava:guava:21.+' |
| 68 | compile 'org.javassist:javassist:3.21.0-GA' | 68 | compile 'org.javassist:javassist:3.22.0-GA' |
| 69 | compile 'org.bitbucket.mstrobel:procyon-compilertools:0.5.33.8-enigma' | 69 | compile 'org.bitbucket.mstrobel:procyon-compilertools:0.5.33.8-enigma' |
| 70 | compile 'com.google.code.gson:gson:2.8.1' | 70 | compile 'com.google.code.gson:gson:2.8.1' |
| 71 | 71 | ||
diff --git a/src/main/java/cuchaz/enigma/bytecode/MethodParametersAttribute.java b/src/main/java/cuchaz/enigma/bytecode/MethodParametersAttribute.java index 3f819abd..57d60fdb 100644 --- a/src/main/java/cuchaz/enigma/bytecode/MethodParametersAttribute.java +++ b/src/main/java/cuchaz/enigma/bytecode/MethodParametersAttribute.java | |||
| @@ -35,8 +35,6 @@ public class MethodParametersAttribute extends AttributeInfo { | |||
| 35 | for (String name : names) { | 35 | for (String name : names) { |
| 36 | if (name != null) { | 36 | if (name != null) { |
| 37 | parameterNameIndices.add(constPool.addUtf8Info(name)); | 37 | parameterNameIndices.add(constPool.addUtf8Info(name)); |
| 38 | } else { | ||
| 39 | parameterNameIndices.add(0); | ||
| 40 | } | 38 | } |
| 41 | } | 39 | } |
| 42 | 40 | ||