From ccf0f3084b90a7ffcfa01df348bb2d28b87909fa Mon Sep 17 00:00:00 2001 From: zaaarf Date: Tue, 7 Feb 2023 18:04:44 +0100 Subject: [PATCH] fix: imports --- src/main/java/ftbsc/lll/tools/StackTools.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/main/java/ftbsc/lll/tools/StackTools.java b/src/main/java/ftbsc/lll/tools/StackTools.java index bbb663b..8cb4504 100644 --- a/src/main/java/ftbsc/lll/tools/StackTools.java +++ b/src/main/java/ftbsc/lll/tools/StackTools.java @@ -1,11 +1,9 @@ package ftbsc.lll.tools; -import com.sun.istack.internal.Nullable; import org.objectweb.asm.Opcodes; import org.objectweb.asm.tree.*; import java.util.Comparator; -import java.util.Objects; /** * Various methods for manipulating the stack. @@ -23,7 +21,7 @@ public class StackTools implements Opcodes { * @param args nodes containing instructions to load the constructor arguments, in the right order * @return an instruction list containing the opcodes needed to create the new object and load it on the stack. */ - public static InsnList instantiate(String name, String desc, @Nullable AbstractInsnNode... args) { + public static InsnList instantiate(String name, String desc, AbstractInsnNode... args) { InsnSequence is = new InsnSequence(); is.add(args); return instantiate(name, desc, is); @@ -39,7 +37,7 @@ public class StackTools implements Opcodes { * @param args a list of instructions loading the constructor arguments onto the stack in the correct order * @return an instruction list containing the opcodes needed to create the new object and load it on the stack. */ - public static InsnList instantiate(String name, String desc, @Nullable InsnList args) { + public static InsnList instantiate(String name, String desc, InsnList args) { InsnSequence list = new InsnSequence(); list.add(new TypeInsnNode(NEW, name), new InsnNode(DUP)); if (args != null) list.add(args);