mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-01 02:38:59 +07:00
create from usage: extract used type params from deep levels (IDEA-87564)
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
// "Create Method 'f'" "true"
|
||||
public class CreateMethodTest {
|
||||
public <T> T aMethod(T t) {
|
||||
T result = f(t);
|
||||
return result;
|
||||
}
|
||||
|
||||
private <T> T f(T t) {
|
||||
<selection>return null; //To change body of created methods use File | Settings | File Templates.</selection>
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
// "Create Method 'f'" "true"
|
||||
public class CreateMethodTest {
|
||||
public <T> T aMethod(T t) {
|
||||
T result = f<caret>(t);
|
||||
return result;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user