Skip to content

Commit

Permalink
updated comment, 3rd attempt
Browse files Browse the repository at this point in the history
  • Loading branch information
matarrese committed Jan 13, 2018
1 parent caebe43 commit 8184789
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,8 @@ public Number getKeyAsNumber() {
try {
return Long.parseLong(termBytes.utf8ToString());
} catch (NumberFormatException ignored) {
//failed to detect an Integer
//first tried to parsed as an Integer in order to not lose accuracy
//in case the values is bigger than 2^52
}
return Double.parseDouble(termBytes.utf8ToString());
}
Expand Down

0 comments on commit 8184789

Please sign in to comment.