Skip to content

Commit

Permalink
Merge branch '2.17'
Browse files Browse the repository at this point in the history
  • Loading branch information
cowtowncoder committed Jan 4, 2024
2 parents 3dc559a + f7780a4 commit ffac28a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ protected T _fromString(JsonParser p, DeserializationContext ctxt,
return _fromLong(ctxt, NumberInput.parseLong(string));
}
if (dots == 1) {
return _fromDecimal(ctxt, NumberInput.parseBigDecimal(string));
return _fromDecimal(ctxt, NumberInput.parseBigDecimal(string, false));
}
} catch (NumberFormatException e) {
// fall through to default handling, to get error there
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ public static BigDecimal toBigDecimal(long seconds, int nanoseconds)
}
return BigDecimal.valueOf(seconds).setScale(9);
}
return NumberInput.parseBigDecimal(toDecimal(seconds, nanoseconds));
return NumberInput.parseBigDecimal(toDecimal(seconds, nanoseconds), false);
}

/**
Expand Down

0 comments on commit ffac28a

Please sign in to comment.