Apache Lucene open-source search software
#12506: switch to TestUtil for random ints to be consistent with 9.x backport where Java 11 doesn't have this API
Mike McCandless2a31f2835cff
diff --git a/lucene/core/src/test/org/apache/lucene/index/TestByteSlicePool.java b/lucene/core/src/test/org/apache/lucene/index/TestByteSlicePool.javaindex 30cc11aa31c..4e7593960da 100644--- a/lucene/core/src/test/org/apache/lucene/index/TestByteSlicePool.java+++ b/lucene/core/src/test/org/apache/lucene/index/TestByteSlicePool.java@@ -226,7 +226,7 @@ public class TestByteSlicePool extends LuceneTestCase {ByteBlockPool blockPool = new ByteBlockPool(new ByteBlockPool.DirectAllocator());ByteSlicePool slicePool = new ByteSlicePool(blockPool);- int n = random().nextInt(2, 4); // 2 or 3 writers and readers+ int n = TestUtil.nextInt(random(), 2, 3); // 2 or 3 writers and readersSliceWriter[] sliceWriters = new SliceWriter[n];SliceReader[] sliceReaders = new SliceReader[n];