fix: docs and method order in proxies

This commit is contained in:
zaaarf 2023-03-04 01:43:55 +01:00
parent 52dbb847a4
commit 211a24bfc8
No known key found for this signature in database
GPG key ID: AD8563472FD43386
2 changed files with 6 additions and 3 deletions

View file

@ -1,6 +1,7 @@
package ftbsc.lll.tools.nodes; package ftbsc.lll.tools.nodes;
import ftbsc.lll.proxies.FieldProxy; import ftbsc.lll.proxies.FieldProxy;
import ftbsc.lll.proxies.MethodProxy;
import org.objectweb.asm.tree.FieldInsnNode; import org.objectweb.asm.tree.FieldInsnNode;
/** /**
@ -14,6 +15,7 @@ public class FieldProxyInsnNode extends FieldInsnNode {
* from a {@link FieldProxy}. * from a {@link FieldProxy}.
* @param opcode the opcode, must be one of GETSTATIC, PUTSTATIC, * @param opcode the opcode, must be one of GETSTATIC, PUTSTATIC,
* GETFIELD or PUTFIELD * GETFIELD or PUTFIELD
* @param a {@link FieldProxy} representing the field to call
*/ */
public FieldProxyInsnNode(int opcode, FieldProxy proxy) { public FieldProxyInsnNode(int opcode, FieldProxy proxy) {
super( super(

View file

@ -15,8 +15,9 @@ public class MethodProxyInsnNode extends MethodInsnNode {
* from a {@link MethodProxy}. * from a {@link MethodProxy}.
* @param opcode the opcode, must be one of INVOKEVIRTUAL, * @param opcode the opcode, must be one of INVOKEVIRTUAL,
* INVOKESPECIAL, INVOKESTATIC or INVOKEINTERFACE * 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( super(
opcode, opcode,
m.getParent().replace('.', '/'), m.getParent().replace('.', '/'),