Raw use of parameterized class
问题 I wrote a helper method for getting values of static fields of specified type via reflection. The code is working fine, but I am getting "raw use of parameterized class" warning on line: final List<Collection> fields = getStaticFieldValues(Container.class, Collection.class); The issue is that type parameter T can be generic type. Is there way to rewrite method getStaticFieldValues to work around this issue? Code listing: import static java.util.Arrays.asList; import static org.junit.Assert