Relates :
|
Javac does not generate warnings for the following test case which uses raw types. //Main.java import java.util.*; public class Main { public static final Class[] TEST_CLASS = new Class<?>[16]; public static final List[] TEST_MAP = new ArrayList<?>[16]; } After compiling with javac -Xlint:all Main.java, no warnings are printed out.