mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-07 05:09:37 +07:00
create method from usage: create method type params if needed (IDEA-55505)
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
// "Create Method 'f'" "true"
|
||||
class A {
|
||||
<T> T foo(){
|
||||
B<T> x = f();
|
||||
}
|
||||
|
||||
private <T> B<T> f() {
|
||||
<selection>return null; //To change body of created methods use File | Settings | File Templates.</selection>
|
||||
}
|
||||
}
|
||||
|
||||
class B<K>{}
|
||||
@@ -0,0 +1,8 @@
|
||||
// "Create Method 'f'" "true"
|
||||
class A {
|
||||
<T> T foo(){
|
||||
B<T> x = f<caret>();
|
||||
}
|
||||
}
|
||||
|
||||
class B<K>{}
|
||||
Reference in New Issue
Block a user