Fix compilation under Java 11.

This commit is contained in:
Adrien Grand 2023-09-19 12:11:51 +02:00
parent 36432fa672
commit 1d0edd76a5
1 changed files with 1 additions and 1 deletions

View File

@ -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);