From df035f43441eed4e9d63bdff1ebead38866446b0 Mon Sep 17 00:00:00 2001 From: Leon Linhart Date: Thu, 7 Mar 2019 17:33:13 +0100 Subject: [PATCH] decompiler: Recognize enum as keyword on Java 5 --- src/org/jetbrains/java/decompiler/util/TextUtil.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/org/jetbrains/java/decompiler/util/TextUtil.java b/src/org/jetbrains/java/decompiler/util/TextUtil.java index 10e3991..3d92d2e 100644 --- a/src/org/jetbrains/java/decompiler/util/TextUtil.java +++ b/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) {