Comparison to 'Double.NaN' or 'Float.NaN'
Reports any comparisons to
Float.NaN. Such comparisons are never meaningful, as NaN is not equal to anything, including itself. Use the
Float.isNaN() methods instead.
After the quick-fix is applied:
IntelliJ IDEA 2023.3, Qodana for JVM 2023.3