create from usage: extract used type params from deep levels (IDEA-87564)

This commit is contained in:
anna
2012-07-04 19:43:11 +02:00
parent 93ad8555b3
commit 433f988b40
5 changed files with 82 additions and 44 deletions

View File

@@ -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>
}
}

View File

@@ -0,0 +1,7 @@
// "Create Method 'f'" "true"
public class CreateMethodTest {
public <T> T aMethod(T t) {
T result = f<caret>(t);
return result;
}
}