diff options
author | zaaarf <me@zaaarf.foo> | 2024-06-02 21:44:00 +0200 |
---|---|---|
committer | zaaarf <me@zaaarf.foo> | 2024-06-02 21:44:00 +0200 |
commit | f8bf9996c92d15ee8499bda25f0a23070a6f7752 (patch) | |
tree | cd56e187bad4a99bca1955403a2aad1ac957e548 | |
parent | f93c7b9e169eedeaf6caaa860cbc45cd8f2ffb2a (diff) |
fix: accidentally messed up order of arguments0.6.5
-rw-r--r-- | src/main/java/ftbsc/lll/processor/containers/MethodContainer.java | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/main/java/ftbsc/lll/processor/containers/MethodContainer.java b/src/main/java/ftbsc/lll/processor/containers/MethodContainer.java index e8b0892..ea0d5e7 100644 --- a/src/main/java/ftbsc/lll/processor/containers/MethodContainer.java +++ b/src/main/java/ftbsc/lll/processor/containers/MethodContainer.java @@ -65,14 +65,13 @@ public class MethodContainer { ExecutableElement tmp = (ExecutableElement) findMember( parent, name, descriptor, descriptor != null && strict,false, options.env ); - this.elem = bridge ? findSyntheticBridge((TypeElement) this.parent.elem, tmp, options.env) : tmp; + this.elem = bridge ? findSyntheticBridge(this.parent.elem, tmp, options.env) : tmp; name = this.elem.getSimpleName().toString(); descriptor = descriptorFromExecutableElement(this.elem, options.env); } // some mapping formats omit methods if they are overriding a parent's method // since there is no drawback but efficiency, let's use the top parent's name for that (when possible) - String mappedName = null; if(this.parent.elem != null) { ExecutableElement top = findOverloadedMethod(this.parent.elem, this.elem, options.env); ClassData topParentData = getClassData( @@ -83,8 +82,8 @@ public class MethodContainer { this.data = new MethodData( parent.data, topData.signature.name, - topData.signature.descriptor, - topData.nameMapped + topData.nameMapped, + topData.signature.descriptor ); } else this.data = getMethodData(parent.data.name, name, descriptor, options.mapper); |