Skip to content

Commit

Permalink
Use parseUnsignedLong(CharSequence s, int beginIndex, int endIndex, i…
Browse files Browse the repository at this point in the history
…nt radix) everywhere

Signed-off-by: Laurent Klock <[email protected]>
  • Loading branch information
klockla committed Nov 27, 2024
1 parent 44b80b7 commit 7908f72
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ protected int sendURLsForQueue(
}

// too early for it?
long scheduled = Long.parseLong(currentKey.substring(pos2 + 1, pos3));
long scheduled = Long.parseLong(currentKey, pos2 + 1, pos3, 10);
if (scheduled > now) {
// they are sorted by date no need to go further
return alreadySent;
Expand Down Expand Up @@ -823,7 +823,7 @@ public void getURLStatus(URLStatusRequest request, StreamObserver<URLItem> respo
final int pos2 = currentKey.indexOf('_', pos + 1);
final int pos3 = currentKey.indexOf('_', pos2 + 1);

fromEpoch = Long.parseLong(currentKey.substring(pos2 + 1, pos3));
fromEpoch = Long.parseLong(currentKey, pos2 + 1, pos3, 10);

try {
info =
Expand Down

0 comments on commit 7908f72

Please sign in to comment.