mirror of
https://github.com/2006-Scape/Parabot.git
synced 2026-07-06 16:50:39 +00:00
[CLEANUP] Switched to String.format and cleanup
This commit is contained in:
@@ -38,7 +38,7 @@ public class Getter implements Injectable {
|
|||||||
this.fieldLocation = ASMUtils.getClass(fieldLocation);
|
this.fieldLocation = ASMUtils.getClass(fieldLocation);
|
||||||
this.fieldNode = ASMUtils.getField(ASMUtils.getClass(fieldLocation), fieldNode, fieldDesc);
|
this.fieldNode = ASMUtils.getField(ASMUtils.getClass(fieldLocation), fieldNode, fieldDesc);
|
||||||
this.methodName = methodName;
|
this.methodName = methodName;
|
||||||
this.returnDesc = returnDesc == null && this.fieldNode != null ? this.fieldNode.desc : returnDesc;
|
this.returnDesc = (returnDesc == null && this.fieldNode != null) ? this.fieldNode.desc : returnDesc;
|
||||||
this.staticMethod = staticMethod;
|
this.staticMethod = staticMethod;
|
||||||
this.multiplier = multiplier;
|
this.multiplier = multiplier;
|
||||||
Core.verbose(methodName + "[" + fieldLocation + "." + fieldNode + "]");
|
Core.verbose(methodName + "[" + fieldLocation + "." + fieldNode + "]");
|
||||||
|
|||||||
@@ -81,10 +81,6 @@ public class Invoker implements Injectable {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
return new StringBuilder()
|
return String.format("Injectable type: Invoker, accessor: %s, method name: %s, invokes method: %s", methodLocation.name, methodName, mName);
|
||||||
.append("Injectable type: Invoker")
|
|
||||||
.append(", accessor: ").append(methodLocation.name)
|
|
||||||
.append(", method name: ").append(methodName)
|
|
||||||
.append(", invokes method: ").append(mName).toString();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ public class Setter implements Injectable {
|
|||||||
this.into = ASMUtils.getClass(into);
|
this.into = ASMUtils.getClass(into);
|
||||||
this.field = ASMUtils.getField(this.fieldLocation, fieldName, fieldDesc);
|
this.field = ASMUtils.getField(this.fieldLocation, fieldName, fieldDesc);
|
||||||
this.name = methodName;
|
this.name = methodName;
|
||||||
this.desc = (desc == null) && this.field != null ? this.field.desc : desc;
|
this.desc = (desc == null && this.field != null) ? this.field.desc : desc;
|
||||||
this.methodStatic = methodStatic;
|
this.methodStatic = methodStatic;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user