fix: mistake in method names

This commit is contained in:
zaaarf 2023-03-04 01:47:15 +01:00
parent 211a24bfc8
commit 118fae8fe7
No known key found for this signature in database
GPG key ID: AD8563472FD43386
3 changed files with 7 additions and 8 deletions

View file

@ -27,7 +27,7 @@ public abstract class AbstractProxy {
/**
* @return the name of the item
*/
public String getname() {
public String getName() {
return this.name;
}

View file

@ -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()
);
}
}

View file

@ -21,7 +21,7 @@ public class MethodProxyInsnNode extends MethodInsnNode {
super(
opcode,
m.getParent().replace('.', '/'),
m.getSrgName(),
m.getName(),
m.getDescriptor()
);
}