mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-21 12:14:37 +07:00
fix psi invalidation on invert if condition (IDEA-192532)
This commit is contained in:
+19
@@ -0,0 +1,19 @@
|
||||
// "Invert 'if' condition" "true"
|
||||
class A {
|
||||
public void annotate() {
|
||||
if (!equals(2)) {
|
||||
annotation.registerFix(new IntentionAction() {
|
||||
public void invoke() throws IncorrectOperationException {
|
||||
}
|
||||
});
|
||||
annotation.registerFix(new IntentionAction() {
|
||||
public <IncorrectOperationException> void invoke() throws IncorrectOperationException {
|
||||
}
|
||||
|
||||
});
|
||||
}
|
||||
else {
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
// "Invert 'if' condition" "true"
|
||||
class A {
|
||||
public void annotate() {
|
||||
<caret>if (equals(2)) return;
|
||||
annotation.registerFix(new IntentionAction() {
|
||||
public void invoke() throws IncorrectOperationException {
|
||||
}
|
||||
});
|
||||
annotation.registerFix(new IntentionAction() {
|
||||
public <IncorrectOperationException> void invoke() throws IncorrectOperationException {
|
||||
}
|
||||
|
||||
});
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user