mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
extract method parameters suggester: change method copy context so calls inside method body could be resolved (aClass..getTypeParameterList() passed inside MethodElement.copyElement && aClass.processDeclarations implementations together cause that method calls to same class members can't be resolved); teach DuplicatesFinder to work on non-physical elements with correct context
This commit is contained in:
+12
@@ -0,0 +1,12 @@
|
||||
class B {
|
||||
void readFile(String s, Class c) {}
|
||||
|
||||
{
|
||||
<selection>
|
||||
readFile("foo", B.class);
|
||||
this.readFile("foo", B.class);
|
||||
</selection>
|
||||
readFile("bar", B.class);
|
||||
this.readFile("bar", B.class);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user