diff options
author | zaaarf <zaaarf@proton.me> | 2023-03-04 01:47:15 +0100 |
---|---|---|
committer | zaaarf <zaaarf@proton.me> | 2023-03-04 11:08:17 +0100 |
commit | 118fae8fe79fe3bfdca79bfd4d08c27b1732ec45 (patch) | |
tree | 92dd2e50903026b8ecc1ac87afbf83f3f92912c9 | |
parent | 211a24bfc8b0d34b193161e7a48632bc1809fcfe (diff) |
fix: mistake in method names
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() ); } |