mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-20 13:31:28 +07:00
Fix wrong intention when referencing parameters in static fields
#IDEA-366531 Fixed GitOrigin-RevId: 1338ab4efdb16eeb9991a060653fa46ff169db3e
This commit is contained in:
committed by
intellij-monorepo-bot
parent
4c704102e1
commit
21a3a5d9eb
@@ -158,7 +158,7 @@ public final class HighlightFixUtil {
|
||||
if (place instanceof PsiReferenceExpression && place.getParent() instanceof PsiMethodCallExpression) {
|
||||
ReplaceGetClassWithClassLiteralFix.registerFix((PsiMethodCallExpression)place.getParent(), info);
|
||||
}
|
||||
if (refElement instanceof PsiJvmModifiersOwner) {
|
||||
if (refElement instanceof PsiJvmModifiersOwner && !(refElement instanceof PsiParameter)) {
|
||||
List<IntentionAction> fixes =
|
||||
JvmElementActionFactories.createModifierActions((PsiJvmModifiersOwner)refElement, MemberRequestsKt.modifierRequest(JvmModifier.STATIC, true));
|
||||
fixes.forEach(info);
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
// "Make 'p' static" "false"
|
||||
|
||||
class A {
|
||||
void m(int p) {
|
||||
class C {
|
||||
static int P = <caret>p;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user