From 1685759f6121c1ac8e2a7e2cb46683d206b1fd4e Mon Sep 17 00:00:00 2001 From: Tagir Valeev Date: Thu, 14 May 2020 15:31:46 +0700 Subject: [PATCH] Use Math.min/max GitOrigin-RevId: 4fafd6b7ef8fd2e8ac99b6e0c8af2d092ded2526 --- src/org/jetbrains/java/decompiler/struct/StructClass.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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