Unchecked warning
Reports code on which an unchecked warning will be issued by the javac compiler. Every unchecked warning may potentially trigger ClassCastException
at runtime.
Example:
List items = Arrays.asList("string", "string");
List<Integer> numbers = Collections.unmodifiableList(items); // unchecked assignment
Inspection options
Option | Type | Default |
---|---|---|
Ignore unchecked assignment | Checkbox | false |
Ignore unchecked generics array creation for vararg parameter | Checkbox | false |
Ignore unchecked call as member of raw type | Checkbox | false |
Ignore unchecked cast | Checkbox | false |
Ignore unchecked overriding | Checkbox | false |
Inspection Details | |
---|---|
Available in: | IntelliJ IDEA 2023.3, Qodana for JVM 2023.3 |
Plugin: | Java, 233.SNAPSHOT |
Last modified: 13 July 2023