Skip to content

Commit

Permalink
made "Method must not be static" error be on the static keyword inste…
Browse files Browse the repository at this point in the history
…ad of the method
  • Loading branch information
O7410 committed Aug 4, 2024
1 parent b0aa313 commit a1c48b0
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ import com.demonwav.mcdev.platform.mixin.util.isAssignable
import com.demonwav.mcdev.platform.mixin.util.isConstructor
import com.demonwav.mcdev.platform.mixin.util.isMixinExtrasSugar
import com.demonwav.mcdev.util.Parameter
import com.demonwav.mcdev.util.findKeyword
import com.demonwav.mcdev.util.fullQualifiedName
import com.demonwav.mcdev.util.invokeLater
import com.demonwav.mcdev.util.synchronize
Expand Down Expand Up @@ -133,7 +134,7 @@ class InvalidInjectorMethodSignatureInspection : MixinInspection() {
} else if (!shouldBeStatic && modifiers.hasModifierProperty(PsiModifier.STATIC)) {
reportedStatic = true
holder.registerProblem(
identifier,
modifiers.findKeyword(PsiModifier.STATIC) ?: identifier,
"Method must not be static",
QuickFixFactory.getInstance().createModifierListFix(
modifiers,
Expand Down

0 comments on commit a1c48b0

Please sign in to comment.