aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/ftbsc/lll/proxies/MethodProxy.java
diff options
context:
space:
mode:
author zaaarf <zaaarf@proton.me>2023-03-03 18:42:42 +0100
committer zaaarf <zaaarf@proton.me>2023-03-03 18:42:51 +0100
commit52dbb847a4c152f3f2abca7804ba5df4caadd8e1 (patch)
treed7123caaed39770d71a5b97b1a05e1ca3a41075b /src/main/java/ftbsc/lll/proxies/MethodProxy.java
parent9ec77a95e02ad18811ea8ac246f7b4887275e8fd (diff)
chore: removed references to cube game from names and comments
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);
}
}