Use Math.min/max

GitOrigin-RevId: 4fafd6b7ef8fd2e8ac99b6e0c8af2d092ded2526
master
Tagir Valeev 5 years ago committed by intellij-monorepo-bot
parent 8382c008b2
commit 1685759f61
  1. 2
      src/org/jetbrains/java/decompiler/struct/StructClass.java

@ -166,7 +166,7 @@ public class StructClass extends StructMember {
} }
public int getBytecodeVersion() { 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 @Override

Loading…
Cancel
Save