mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-03 03:37:58 +07:00
create from usage: ensure type parameters are extracted from wildcards (IDEA-169857)
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
// "Create method 'test'" "true"
|
||||
import java.util.List;
|
||||
public class Test {
|
||||
<T> void f(List<? extends T> l) {
|
||||
test(l);
|
||||
}
|
||||
|
||||
private <T> void test(List<? extends T> l) {
|
||||
<caret>
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
// "Create method 'test'" "true"
|
||||
import java.util.List;
|
||||
public class Test {
|
||||
<T> void f(List<? extends T> l) {
|
||||
te<caret>st(l);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user