summaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
author zaaarf <zaaarf@proton.me>2023-02-07 18:04:44 +0100
committer zaaarf <zaaarf@proton.me>2023-02-07 18:04:44 +0100
commitccf0f3084b90a7ffcfa01df348bb2d28b87909fa (patch)
tree18c40109f71078ba1b47dc0336fc745acce2ad3c /src/main
parentde8da3abda70c216e4c282a0977364169ab6878d (diff)
fix: imports
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/ftbsc/lll/tools/StackTools.java6
1 files 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);