From 211a24bfc8b0d34b193161e7a48632bc1809fcfe Mon Sep 17 00:00:00 2001 From: zaaarf Date: Sat, 4 Mar 2023 01:43:55 +0100 Subject: [PATCH] fix: docs and method order in proxies --- src/main/java/ftbsc/lll/tools/nodes/FieldProxyInsnNode.java | 4 +++- src/main/java/ftbsc/lll/tools/nodes/MethodProxyInsnNode.java | 5 +++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/main/java/ftbsc/lll/tools/nodes/FieldProxyInsnNode.java b/src/main/java/ftbsc/lll/tools/nodes/FieldProxyInsnNode.java index 34a0d67..d8e733d 100644 --- a/src/main/java/ftbsc/lll/tools/nodes/FieldProxyInsnNode.java +++ b/src/main/java/ftbsc/lll/tools/nodes/FieldProxyInsnNode.java @@ -1,6 +1,7 @@ package ftbsc.lll.tools.nodes; import ftbsc.lll.proxies.FieldProxy; +import ftbsc.lll.proxies.MethodProxy; import org.objectweb.asm.tree.FieldInsnNode; /** @@ -14,6 +15,7 @@ public class FieldProxyInsnNode extends FieldInsnNode { * from a {@link FieldProxy}. * @param opcode the opcode, must be one of GETSTATIC, PUTSTATIC, * GETFIELD or PUTFIELD + * @param a {@link FieldProxy} representing the field to call */ public FieldProxyInsnNode(int opcode, FieldProxy proxy) { super( @@ -23,4 +25,4 @@ public class FieldProxyInsnNode extends FieldInsnNode { proxy.getDescriptor() ); } -} \ No newline at end of file +} diff --git a/src/main/java/ftbsc/lll/tools/nodes/MethodProxyInsnNode.java b/src/main/java/ftbsc/lll/tools/nodes/MethodProxyInsnNode.java index 10c091e..a7c7486 100644 --- a/src/main/java/ftbsc/lll/tools/nodes/MethodProxyInsnNode.java +++ b/src/main/java/ftbsc/lll/tools/nodes/MethodProxyInsnNode.java @@ -15,8 +15,9 @@ public class MethodProxyInsnNode extends MethodInsnNode { * from a {@link MethodProxy}. * @param opcode the opcode, must be one of INVOKEVIRTUAL, * INVOKESPECIAL, INVOKESTATIC or INVOKEINTERFACE + * @param m a {@link MethodProxy} representing the method to call */ - public MethodProxyInsnNode(MethodProxy m, int opcode) { + public MethodProxyInsnNode(int opcode, MethodProxy m) { super( opcode, m.getParent().replace('.', '/'), @@ -24,4 +25,4 @@ public class MethodProxyInsnNode extends MethodInsnNode { m.getDescriptor() ); } -} \ No newline at end of file +}