mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-10 13:17:09 +07:00
extract method: search deep for type parameters used in extracted fragment
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
import java.util.List;
|
||||
|
||||
public class Test
|
||||
{
|
||||
<T> void foo(List<? extends List<T>> tr){
|
||||
<selection> tr.add(null);</selection>
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
import java.util.List;
|
||||
|
||||
public class Test
|
||||
{
|
||||
<T> void foo(List<? extends List<T>> tr){
|
||||
newMethod(tr);
|
||||
}
|
||||
|
||||
private <T> void newMethod(List<? extends List<T>> tr) {
|
||||
tr.add(null);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user