Skip to content

Commit

Permalink
removing java 21 syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
masseyke committed Dec 18, 2024
1 parent 0f08101 commit 2e39678
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,8 @@ private void maybeProcessNextIndex(
}
Index index;
try {
index = indicesRemaining.removeFirst();
} catch (NoSuchElementException e) {
index = indicesRemaining.remove(0);
} catch (IndexOutOfBoundsException e) {
return;
}
reindexDataStreamTask.incrementInProgressIndicesCount(index.getName());
Expand Down

0 comments on commit 2e39678

Please sign in to comment.