Project: Eclipse_Platform_UI
Bug 252487 [DataBinding] use Double.isNaN(d) instead of d!=d to check for NaN
Reported: 2008-10-28 15:53:42 | Status: resolved fixed

There are two warnings in StringToNumberParser related to the fact that we use "doubleValue == doubleValue" to determine whether the value is NaN (suprisingly, NaN is never == NaN, even if it is the same variable). We should be using Double.isNaN(doubleValue) instead.

Files changed in fix:
bundles/org.eclipse.core.databinding/src/org/eclipse/core/internal/databinding/conversion/StringToNumberParser.java