Skip to content
Snippets Groups Projects
Commit 7ca960b4 authored by felmer's avatar felmer
Browse files

LMS-1661 Using Double.compare() for comparing two double values which could be NaN

SVN: 17463
parent df371d79
No related branches found
No related tags found
No related merge requests found
......@@ -44,7 +44,7 @@ public class DoubleTableCell implements ISerializableComparable
double v1 = number;
DoubleTableCell numberTableCell = (DoubleTableCell) o;
double v2 = numberTableCell.number;
return v1 < v2 ? -1 : (v1 > v2 ? 1 : 0);
return Double.compare(v1, v2);
}
return toString().compareTo(o.toString());
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment