mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-04 08:51:02 +07:00
exclude method type parameters from extracted class signature (IDEA-53446)
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
public class Extracted {
|
||||
public Extracted() {
|
||||
}
|
||||
|
||||
public <T> void foo(T p) {
|
||||
System.out.println(p.getClass().getName());
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
class Test {
|
||||
private final Extracted extracted = new Extracted();
|
||||
|
||||
public <T> void foo(T p) {
|
||||
extracted.foo(p);
|
||||
}
|
||||
|
||||
public static void main(String[] args) {
|
||||
new Test().foo(10f);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
class Test {
|
||||
public <T> void foo(T p) {
|
||||
System.out.println(p.getClass().getName());
|
||||
}
|
||||
|
||||
public static void main(String[] args) {
|
||||
new Test().foo(10f);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user