decompiler: Recognize enum as keyword on Java 5

master
Leon Linhart 6 years ago
parent a0a8f0a8dd
commit df035f4344
  1. 2
      src/org/jetbrains/java/decompiler/util/TextUtil.java

@ -70,7 +70,7 @@ public class TextUtil {
}
private static boolean isKeyword(String id, int version) {
return KEYWORDS.contains(id) || version > CodeConstants.BYTECODE_JAVA_5 && "enum".equals(id);
return KEYWORDS.contains(id) || version >= CodeConstants.BYTECODE_JAVA_5 && "enum".equals(id);
}
public static String getInstructionName(int opcode) {

Loading…
Cancel
Save