mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
java completion: don't overwrite whole anonymous class
search for reference at `BaseClassRe|f`, not `BaseClassRef() { ... }.call()`
This commit is contained in:
+19
@@ -0,0 +1,19 @@
|
||||
class Bar {
|
||||
void v() {
|
||||
new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
new Foo()<caret> {
|
||||
@Override
|
||||
public void run() {
|
||||
}
|
||||
};
|
||||
|
||||
}
|
||||
}.run();
|
||||
}
|
||||
}
|
||||
|
||||
class Foo {
|
||||
Foo() {}
|
||||
}
|
||||
+19
@@ -0,0 +1,19 @@
|
||||
class Bar {
|
||||
void v() {
|
||||
new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
new Fo<caret>o() {
|
||||
@Override
|
||||
public void run() {
|
||||
}
|
||||
};
|
||||
|
||||
}
|
||||
}.run();
|
||||
}
|
||||
}
|
||||
|
||||
class Foo {
|
||||
Foo() {}
|
||||
}
|
||||
Reference in New Issue
Block a user