diff options
3 files changed, 7 insertions, 8 deletions
diff --git a/src/main/java/ftbsc/lll/proxies/AbstractProxy.java b/src/main/java/ftbsc/lll/proxies/AbstractProxy.java index 2b80b01..1ee19a8 100644 --- a/src/main/java/ftbsc/lll/proxies/AbstractProxy.java +++ b/src/main/java/ftbsc/lll/proxies/AbstractProxy.java @@ -27,7 +27,7 @@ public abstract class AbstractProxy { /** * @return the name of the item */ - public String getname() { + public String getName() { return this.name; } 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() ); } |