fix for comparison issue with double

This commit is contained in:
gpq5 2019-07-02 00:40:57 +05:30
parent 3d50c203a6
commit ce206fade4
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}
}