From 118fae8fe79fe3bfdca79bfd4d08c27b1732ec45 Mon Sep 17 00:00:00 2001 From: zaaarf Date: Sat, 4 Mar 2023 01:47:15 +0100 Subject: fix: mistake in method names --- src/main/java/ftbsc/lll/tools/nodes/FieldProxyInsnNode.java | 11 +++++------ src/main/java/ftbsc/lll/tools/nodes/MethodProxyInsnNode.java | 2 +- 2 files changed, 6 insertions(+), 7 deletions(-) (limited to 'src/main/java/ftbsc/lll/tools/nodes') diff --git a/src/main/java/ftbsc/lll/tools/nodes/FieldProxyInsnNode.java b/src/main/java/ftbsc/lll/tools/nodes/FieldProxyInsnNode.java index d8e733d..896dc42 100644 --- a/src/main/java/ftbsc/lll/tools/nodes/FieldProxyInsnNode.java +++ b/src/main/java/ftbsc/lll/tools/nodes/FieldProxyInsnNode.java @@ -1,7 +1,6 @@ package ftbsc.lll.tools.nodes; import ftbsc.lll.proxies.FieldProxy; -import ftbsc.lll.proxies.MethodProxy; import org.objectweb.asm.tree.FieldInsnNode; /** @@ -15,14 +14,14 @@ 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 + * @param f a {@link FieldProxy} representing the field to call */ - public FieldProxyInsnNode(int opcode, FieldProxy proxy) { + public FieldProxyInsnNode(int opcode, FieldProxy f) { super( opcode, - proxy.getParent().replace('.', '/'), - proxy.getSrgName(), - proxy.getDescriptor() + f.getParent().replace('.', '/'), + f.getName(), + f.getDescriptor() ); } } diff --git a/src/main/java/ftbsc/lll/tools/nodes/MethodProxyInsnNode.java b/src/main/java/ftbsc/lll/tools/nodes/MethodProxyInsnNode.java index a7c7486..63196fd 100644 --- a/src/main/java/ftbsc/lll/tools/nodes/MethodProxyInsnNode.java +++ b/src/main/java/ftbsc/lll/tools/nodes/MethodProxyInsnNode.java @@ -21,7 +21,7 @@ public class MethodProxyInsnNode extends MethodInsnNode { super( opcode, m.getParent().replace('.', '/'), - m.getSrgName(), + m.getName(), m.getDescriptor() ); } -- cgit v1.2.3-56-ga3b1