Eclipse Warning in IDEA 10
Hello,
I'm the sole IntelliJ user in a development team that uses Eclipse. The Eclipse users are complaining that code similar to the following generates a warning:
class Miracle {
public void performMiracle(Class clazz) { ... }
}
Eclipse warns that "Class is a raw type. References to generic type Class<T> should be parameterized"
IntelliJ (at least how I have it set up,) doesn't complain about this particular case. I've looked through the list of inspections and can't seem to find one that would force IntelliJ to complain. Does anyone know if such an inspection exists? I use generics elsewhere and have my project language level set to 8.0.
Thanks!
-- Cam
请先登录再写评论。
"Raw use of parameterized class". Just type "raw" into the search box of
the settings dialog (or the inspections search box).
Excellent! Looks good.
Thanks Chris!
-- Cam