mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 15:27:45 +07:00
support Rename Reference on invalid method call (IDEA-176918)
This commit is contained in:
+6
@@ -0,0 +1,6 @@
|
||||
// "Rename reference" "true"
|
||||
class c {
|
||||
void () {
|
||||
int i = i;
|
||||
}
|
||||
}
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
// "Rename reference" "true"
|
||||
class c {
|
||||
void foo(boolean b) {
|
||||
if (b) {
|
||||
int i = 0;
|
||||
i++;
|
||||
} else {
|
||||
k++;
|
||||
}
|
||||
}
|
||||
int k;
|
||||
}
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
// "Rename reference" "true"
|
||||
class FooInterface {
|
||||
private int myInt;
|
||||
}
|
||||
|
||||
class Foo {
|
||||
float myFloat;
|
||||
|
||||
void buzz() {
|
||||
myFloat + myFloat;
|
||||
}
|
||||
}
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
// "Rename reference" "true"
|
||||
class Foo {
|
||||
|
||||
void buzz() {
|
||||
buzz();
|
||||
this.buzz(); //don't pay attention to same type qualifier
|
||||
a.buzz();
|
||||
}
|
||||
}
|
||||
+1
@@ -8,4 +8,5 @@ class c {
|
||||
i<caret>++;
|
||||
}
|
||||
}
|
||||
int k;
|
||||
}
|
||||
+2
@@ -4,6 +4,8 @@ class FooInterface {
|
||||
}
|
||||
|
||||
class Foo {
|
||||
float myFloat;
|
||||
|
||||
void buzz() {
|
||||
myI<caret>nt + myInt;
|
||||
}
|
||||
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
// "Rename reference" "true"
|
||||
class Foo {
|
||||
|
||||
void buzz() {
|
||||
b<caret>ar();
|
||||
this.bar(); //don't pay attention to same type qualifier
|
||||
a.bar();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user