fix for comparison issue with double
This commit is contained in:
parent
3d50c203a6
commit
ce206fade4
|
@ -82,7 +82,7 @@ public class JsonCompareUnitTest {
|
|||
if ((o1 instanceof NumericNode) && (o2 instanceof NumericNode)) {
|
||||
Double d1 = ((NumericNode) o1).asDouble();
|
||||
Double d2 = ((NumericNode) o2).asDouble();
|
||||
if (d1.equals(d2)) {
|
||||
if (d1.compareTo(d2) == 0) {
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue