mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-01 10:48:09 +07:00
create method from usage: do not qualify already qualified ref (IDEA-91041)
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
// "Create Method 'run'" "true"
|
||||
class Bug {
|
||||
|
||||
interface Foo<X> {
|
||||
void run(X x);
|
||||
}
|
||||
|
||||
public static void main(String[] args) {
|
||||
new Foo<Bug>() {
|
||||
@Override
|
||||
public void run(Bug o) {
|
||||
o.run();
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
private void run() {
|
||||
<selection>//To change body of created methods use File | Settings | File Templates.</selection>
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
// "Create Method 'run'" "true"
|
||||
class Bug {
|
||||
|
||||
interface Foo<X> {
|
||||
void run(X x);
|
||||
}
|
||||
|
||||
public static void main(String[] args) {
|
||||
new Foo<Bug>() {
|
||||
@Override
|
||||
public void run(Bug o) {
|
||||
o.ru<caret>n();
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user