Is there any Java compiler flag that one can pass to tell the compiler to disallow the use of raw types? That is, for any generic class, let the compiler force that the parameterized version be used, and throw a compilation error otherwise?
Share
JDK7 (b38) introduces
-Xlint:rawtypes. As mentioned above,-Xlint:uncheckedwarns about unchecked conversions.Maurizio Cimadamore of the javac team wrote a weblog entry about it.