public class Reflection {
+ class GenericShort<TUVW,ABCD> {
+ }
+
class Generic<TUVW,ABCD,KLM,NOP> {
}
}
System.out.println();*/
- TypeVariable[] typeParameters = Generic.class.getTypeParameters();
+ TypeVariable[] typeParameters = GenericShort.class.getTypeParameters();
//TypeVariable[] typeParameters = SampleClass.class.getTypeParameters();
for(TypeVariable typeVar: typeParameters){
System.out.println(typeVar);