This inspection reports an equality check with Double.NaN which can be replaced with a.isNaN(). For every floating point value a, a == NaN will always result in false.