summaryrefslogtreecommitdiff
path: root/src/main/java/ftbsc/lll/proxies/MethodProxy.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/ftbsc/lll/proxies/MethodProxy.java')
-rw-r--r--src/main/java/ftbsc/lll/proxies/MethodProxy.java20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/main/java/ftbsc/lll/proxies/MethodProxy.java b/src/main/java/ftbsc/lll/proxies/MethodProxy.java
index 1df4678..ff5e1f0 100644
--- a/src/main/java/ftbsc/lll/proxies/MethodProxy.java
+++ b/src/main/java/ftbsc/lll/proxies/MethodProxy.java
@@ -51,14 +51,14 @@ public class MethodProxy extends AbstractProxy {
/**
* A protected constructor, called only from the builder.
- * @param srgName the SRG name of the method
+ * @param name the name of the method
* @param modifiers the modifiers of the method
* @param parent the FQN of the parent class of the method
* @param parameters the parameters of the method
* @param returnType the return type of the method
*/
- protected MethodProxy(String srgName, int modifiers, String parent, Object[] parameters, Object returnType) {
- super(srgName, modifiers, parent);
+ protected MethodProxy(String name, int modifiers, String parent, Object[] parameters, Object returnType) {
+ super(name, modifiers, parent);
this.parameters = parameters;
this.returnType = returnType;
this.descriptorCache = null;
@@ -96,11 +96,11 @@ public class MethodProxy extends AbstractProxy {
/**
* Returns a new instance of {@link MethodProxy.Builder}.
- * @param srgName the SRG name of the method
+ * @param name the name of the method
* @return the builder object for method proxies
*/
- public static Builder builder(String srgName) {
- return new Builder(srgName);
+ public static Builder builder(String name) {
+ return new Builder(name);
}
/**
@@ -119,10 +119,10 @@ public class MethodProxy extends AbstractProxy {
/**
* The constructor of the builder, used only internally.
- * @param srgName the SRG name of the method
+ * @param name the name of the method
*/
- Builder(String srgName) {
- super(srgName);
+ Builder(String name) {
+ super(name);
this.parameters = new ArrayList<>();
this.returnType = void.class;
}
@@ -177,7 +177,7 @@ public class MethodProxy extends AbstractProxy {
*/
@Override
public MethodProxy build() {
- return new MethodProxy(srgName, modifiers, parent, parameters.toArray(), returnType);
+ return new MethodProxy(name, modifiers, parent, parameters.toArray(), returnType);
}
}