Skip to content

Commit

Permalink
Avoid implicit casting in ESQL SearchStats (#104947) (#104979)
Browse files Browse the repository at this point in the history
./gradlew precommit fails with JDK21 and we should use longs instead of ints.
  • Loading branch information
dnhatn authored Jan 31, 2024
1 parent 0c8781c commit 6185ba6
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -232,8 +232,8 @@ private interface DocCountTester {
//
// @see org.elasticsearch.search.query.QueryPhaseCollectorManager#shortcutTotalHitCount(IndexReader, Query)
//
private static int countEntries(IndexReader indexReader, String field) {
int count = 0;
private static long countEntries(IndexReader indexReader, String field) {
long count = 0;
try {
for (LeafReaderContext context : indexReader.leaves()) {
LeafReader reader = context.reader();
Expand Down

0 comments on commit 6185ba6

Please sign in to comment.