exclude method type parameters from extracted class signature (IDEA-53446)

This commit is contained in:
anna
2010-04-21 16:57:55 +04:00
parent f7d85dc91f
commit 581e899f47
5 changed files with 36 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
public class Extracted {
public Extracted() {
}
public <T> void foo(T p) {
System.out.println(p.getClass().getName());
}
}

View File

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

View File

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