[Tests] Fix type inference issue (#44063)

This commit is contained in:
Christoph Büscher 2019-07-08 17:33:44 +02:00
parent 03332b5aeb
commit 8e8d7667cb
1 changed files with 2 additions and 1 deletions

View File

@ -75,7 +75,8 @@ public class QuerierTests extends ESTestCase {
for (int j = 0; j < noColumns; j++) {
boolean order = randomBoolean();
ordering[j] = order;
tuples.add(new Tuple<>(j, order ? Comparator.naturalOrder() : Comparator.reverseOrder()));
Comparator comp = order ? Comparator.naturalOrder() : Comparator.reverseOrder();
tuples.add(new Tuple<>(j, comp));
}
// Insert random no of documents (rows) with random 0/1 values for each field