Back to Intellij Community

UNCHECKED WARNING

java/java-impl/resources/inspectionDescriptions/UNCHECKED_WARNING.html

2025.3-rc-2315 B
Original Source

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