blob: b375262d3ff00f22c39cb7df5b3c380812758c9a [file] [log] [blame] [view] [edit]
As per JLS 15.21.1, == NaN comparisons always return false, even NaN == NaN.
Instead, use the isNaN methods to check for NaN.