We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 84a37d0 commit 1dd31f2Copy full SHA for 1dd31f2
src/main/kotlin/platform/mixin/inspection/shadow/ShadowParameterNameInspection.kt
@@ -49,7 +49,7 @@ class ShadowParameterNameInspection : MixinInspection() {
49
return
50
}
51
val thisLocals = if (target.classAndMethod.method.hasAccess(Opcodes.ACC_STATIC)) 0 else 1
52
- val targetLocals = target.classAndMethod.method.localVariables?.drop(thisLocals)?.sortedBy { it.index } ?: return
+ val targetLocals = target.classAndMethod.method.localVariables?.sortedBy { it.index }?.drop(thisLocals) ?: return
53
54
val method = annotation.parent?.parent as? PsiMethod ?: return
55
for ((param, targetLocal) in method.parameterList.parameters.zip(targetLocals)) {
0 commit comments