mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-13 21:55:01 +07:00
replace ref quickfix checks scope (IDEA-64946)
This commit is contained in:
+1
-1
@@ -433,7 +433,7 @@ public class CreateFromUsageUtils {
|
||||
|
||||
@Override public void visitReferenceExpression(PsiReferenceExpression expr) {
|
||||
if (expression instanceof PsiReferenceExpression) {
|
||||
if (expr.textMatches(expression)) {
|
||||
if (expr.textMatches(expression) && expr.resolve() == null) {
|
||||
result.add(expr);
|
||||
}
|
||||
}
|
||||
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
// "Rename Reference" "true"
|
||||
class c {
|
||||
void foo(boolean b) {
|
||||
if (b) {
|
||||
int i = 0;
|
||||
i++;
|
||||
} else {
|
||||
i<caret>++;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user