summaryrefslogtreecommitdiff
path: root/src/main/java/ftbsc/lll/mapper/data
diff options
context:
space:
mode:
author zaaarf <me@zaaarf.foo>2024-05-31 18:56:00 +0200
committer zaaarf <me@zaaarf.foo>2024-05-31 18:56:00 +0200
commitf7123206100c7026bab4478ad276bcda63f1be6a (patch)
tree52120e0f9dae87cda80ff029b6c70c5dbcf7de46 /src/main/java/ftbsc/lll/mapper/data
parentc48450085ba07655abc8b119629634f5ca43ebb9 (diff)
fix: solved various (glaring) mistakes, now it works!HEAD0.4.1dev
Diffstat (limited to 'src/main/java/ftbsc/lll/mapper/data')
-rw-r--r--src/main/java/ftbsc/lll/mapper/data/ClassData.java2
-rw-r--r--src/main/java/ftbsc/lll/mapper/data/MethodSignature.java6
2 files changed, 4 insertions, 4 deletions
diff --git a/src/main/java/ftbsc/lll/mapper/data/ClassData.java b/src/main/java/ftbsc/lll/mapper/data/ClassData.java
index 04592fd..f8c6901 100644
--- a/src/main/java/ftbsc/lll/mapper/data/ClassData.java
+++ b/src/main/java/ftbsc/lll/mapper/data/ClassData.java
@@ -87,7 +87,7 @@ public class ClassData {
*/
public ClassData generateReverseMappings(Mapper mapper) {
ClassData reverse = new ClassData(this.nameMapped, this.name);
- this.methods.forEach((signature, data) -> reverse.addMethod(nameMapped, signature.name,
+ this.methods.forEach((signature, data) -> reverse.addMethod(data.nameMapped, signature.name,
MappingUtils.mapMethodDescriptor(signature.descriptor, mapper, false)));
this.fields.forEach((name, data) -> reverse.addField(data.nameMapped, name, data.descriptor));
return reverse;
diff --git a/src/main/java/ftbsc/lll/mapper/data/MethodSignature.java b/src/main/java/ftbsc/lll/mapper/data/MethodSignature.java
index d7515a8..b1f30f2 100644
--- a/src/main/java/ftbsc/lll/mapper/data/MethodSignature.java
+++ b/src/main/java/ftbsc/lll/mapper/data/MethodSignature.java
@@ -18,7 +18,7 @@ public class MethodSignature {
/**
* Constructs a new {@link MethodSignature}. The parameters should be
- * either plain or obfuscated in the same way;
+ * either plain or mapped in the same way;
* @param name the method name
* @param descriptor the method descriptor
*/
@@ -37,7 +37,7 @@ public class MethodSignature {
if(this == o) return true;
if(o == null || getClass() != o.getClass()) return false;
MethodSignature signature = (MethodSignature) o;
- return Objects.equals(name, signature.name) && Objects.equals(descriptor, signature.descriptor);
+ return Objects.equals(this.name, signature.name) && Objects.equals(this.descriptor, signature.descriptor);
}
/**
@@ -46,6 +46,6 @@ public class MethodSignature {
*/
@Override
public int hashCode() {
- return Objects.hash(name, descriptor);
+ return Objects.hash(this.name, this.descriptor);
}
}