diff --git a/src/main/java/io/papermc/codebook/lvt/LvtAssignmentSuggester.java b/src/main/java/io/papermc/codebook/lvt/LvtAssignmentSuggester.java index 1685d80..785c65e 100644 --- a/src/main/java/io/papermc/codebook/lvt/LvtAssignmentSuggester.java +++ b/src/main/java/io/papermc/codebook/lvt/LvtAssignmentSuggester.java @@ -38,7 +38,6 @@ import dev.denwav.hypo.model.data.types.PrimitiveType; import io.papermc.codebook.exceptions.UnexpectedException; import java.io.IOException; -import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.Locale; @@ -483,8 +482,9 @@ private static boolean isStringAllUppercase(final String input) { } // 3 instructions, load "this" local var, getfield, return - TODO maybe if there is a CAST, - private static final IntPredicate[] OPCODES_IN_ORDER = new IntPredicate[]{ - i -> i == Opcodes.ALOAD, i -> i == Opcodes.GETFIELD, i -> i >= Opcodes.IRETURN && i <= Opcodes.RETURN}; + private static final IntPredicate[] OPCODES_IN_ORDER = new IntPredicate[] { + i -> i == Opcodes.ALOAD, i -> i == Opcodes.GETFIELD, i -> i >= Opcodes.IRETURN && i <= Opcodes.RETURN + }; private static @Nullable String suggestNameFromFluentGetter( final AsmClassData owner, final AsmMethodData method, final MethodInsnNode insn) {