Reports generic classes with omitted type parameters. Such raw use of generic types is valid in Java, but it defeats the purpose of type parameters and may mask bugs. This inspection mirrors the rawtypes warning of javac.

Examples:


//warning: Raw use of parameterized class 'List'
List list = new ArrayList<String>();
//list of strings was created but integer is accepted as well
list.add(1);

//no warning as it's impossible to provide type arguments during array creation
IntFunction<List<?>[]> fun = List[]::new;

Configure the inspection: