TICS Coding Standard Viewer 
TIOBE Software Quality Framework
Print-friendly version
©TIOBE Software www.tiobe.com
 
TIOBE - Java Coding Standard
Search

Rule:  Design16Checked automatically with code checker

Synopsis:Avoid equality comparisons with Double.NaN
Language:Java
Severity Level:1
Category:Design


Description:
Avoid equality comparisons with Double.NaN - these are likely to be logic errors.
public class Bar {
 boolean x = (y == Double.NaN);
}