hi,
my IDE generates a warning when i use the following code:
aMethod(List.class);
"Type safety: The expression of type List needs unchecked conversion to conform to ..." Sadly when i try to let the IDE fix it, it doesn't work. What is the proper syntax to infere the generic type ? Thx in advance for any help.
edit:
Signature of the method:
public static <T> T aMethod(Class<T> clazz)
Lets make it simple and say the type i wanna refere to is String
.
kuku