Apache Lucene open-source search software
Fix compilation under Java 11.
Adrien Grand1d0edd76a5e1
diff --git a/lucene/misc/src/java/org/apache/lucene/misc/index/BPIndexReorderer.java b/lucene/misc/src/java/org/apache/lucene/misc/index/BPIndexReorderer.javaindex 52f1e646ccf..5fe08b4d124 100644--- a/lucene/misc/src/java/org/apache/lucene/misc/index/BPIndexReorderer.java+++ b/lucene/misc/src/java/org/apache/lucene/misc/index/BPIndexReorderer.java@@ -75,7 +75,7 @@ import org.apache.lucene.util.OfflineSorter.BufferSize;* Directory targetDir = FSDirectory.open(targetPath);* BPIndexReorderer reorderer = new BPIndexReorderer();* ForkJoinPool pool = new ForkJoinPool(Runtime.getRuntime().availableProcessors(),- * p -> new ForkJoinWorkerThread(p) {}, null, random().nextBoolean());+ * p -> new ForkJoinWorkerThread(p) {}, null, false);* reorderer.setForkJoinPool(pool);* reorderer.setFields(Collections.singleton("body"));* CodecReader reorderedReaderView = reorderer.reorder(SlowCodecReaderWrapper.wrap(reader), targetDir);