Skip to content

Commit

Permalink
Fix inner class methods not being resolved
Browse files Browse the repository at this point in the history
  • Loading branch information
Gaming32 committed Jan 4, 2024
1 parent bbe75da commit aaafa31
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/kotlin/com/replaymod/gradle/remap/PsiMapper.kt
Original file line number Diff line number Diff line change
Expand Up @@ -345,15 +345,15 @@ internal class PsiMapper(

private fun findMappingInner(method: PsiMethod): MethodMapping? {
val declaringClass = method.containingClass ?: return null
val className = declaringClass.qualifiedName
val className = declaringClass.dollarQualifiedName

className?.let(map::findClassMapping)
?.findMethodMapping(getSignature(method))
?.let { return it }

for (superMethod in method.findSuperMethods()) {
superMethod.containingClass
?.qualifiedName
?.dollarQualifiedName
?.let(map::findClassMapping)
?.findMethodMapping(getSignature(superMethod))
?.let { return it }
Expand Down

0 comments on commit aaafa31

Please sign in to comment.