diff --git a/src/org/jetbrains/java/decompiler/struct/StructClass.java b/src/org/jetbrains/java/decompiler/struct/StructClass.java index 02bb74a..0bb370c 100644 --- a/src/org/jetbrains/java/decompiler/struct/StructClass.java +++ b/src/org/jetbrains/java/decompiler/struct/StructClass.java @@ -166,7 +166,7 @@ public class StructClass extends StructMember { } public int getBytecodeVersion() { - return majorVersion < CodeConstants.BYTECODE_JAVA_LE_4 ? CodeConstants.BYTECODE_JAVA_LE_4 : majorVersion; + return Math.max(majorVersion, CodeConstants.BYTECODE_JAVA_LE_4); } @Override