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

2 comments
Comment actions Permalink

"Raw use of parameterized class". Just type "raw" into the search box of
the settings dialog (or the inspections search box).

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!



0
Comment actions Permalink

Excellent! Looks good.

Thanks Chris!

-- Cam

0

Please sign in to leave a comment.