From f8bf9996c92d15ee8499bda25f0a23070a6f7752 Mon Sep 17 00:00:00 2001 From: zaaarf Date: Sun, 2 Jun 2024 21:44:00 +0200 Subject: fix: accidentally messed up order of arguments --- src/main/java/ftbsc/lll/processor/containers/MethodContainer.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/main/java/ftbsc/lll/processor') 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); -- cgit v1.2.3-56-ga3b1