From 5d23663b1c37b08c1a0a91cffc15e26b02e8d3d0 Mon Sep 17 00:00:00 2001 From: modmuss50 Date: Wed, 16 May 2018 09:06:07 +0100 Subject: 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. --- src/main/java/cuchaz/enigma/bytecode/MethodParametersAttribute.java | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/main') diff --git a/src/main/java/cuchaz/enigma/bytecode/MethodParametersAttribute.java b/src/main/java/cuchaz/enigma/bytecode/MethodParametersAttribute.java index 3f819ab..57d60fd 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 { for (String name : names) { if (name != null) { parameterNameIndices.add(constPool.addUtf8Info(name)); - } else { - parameterNameIndices.add(0); } } -- cgit v1.2.3