mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-17 10:25:15 +00:00
[Tests] Fix type inference issue (#44063)
This commit is contained in:
parent
03332b5aeb
commit
8e8d7667cb
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user