Skip to content

Commit

Permalink
Merge pull request #53 from gravity9-tech/17-patchtestoperation-fails…
Browse files Browse the repository at this point in the history
…-when-patching-float-value

Remove commented code
  • Loading branch information
MateuszGravity9 authored Jul 3, 2023
2 parents 30dd844 + 2f9cb39 commit 3641881
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions src/main/java/com/gravity9/jsonpatch/jackson/JsonNumEquals.java
Original file line number Diff line number Diff line change
Expand Up @@ -147,20 +147,6 @@ private int doHash(final JsonNode t)
return ret;
}

// private static boolean numEquals(final JsonNode a, final JsonNode b)
// {
// /*
// * If both numbers are integers, delegate to JsonNode.
// */
// if (a.isIntegralNumber() && b.isIntegralNumber())
// return a.equals(b);
//
// /*
// * Otherwise, compare decimal values.
// */
// return a.decimalValue().compareTo(b.decimalValue()) == 0;
// }

private boolean numEquals(JsonNode a, JsonNode b) {
return a.isNumber() && b.isNumber()
? areNumberNodesNumericallyEqual(a, b)
Expand Down

0 comments on commit 3641881

Please sign in to comment.