LUCENE-6696: Don't use the forbidden API Collections.shuffle(List).

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1692533 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Adrien Grand 2015-07-24 15:06:56 +00:00
parent 9164f21284
commit 068549d8a8
1 changed files with 1 additions and 1 deletions

View File

@ -64,7 +64,7 @@ public class TestFilterDirectoryReader extends LuceneTestCase {
// the original reader once (as per Closeable.close() contract that close() is // the original reader once (as per Closeable.close() contract that close() is
// idempotent) // idempotent)
List<DirectoryReader> readers = Arrays.asList(reader, wrapped); List<DirectoryReader> readers = Arrays.asList(reader, wrapped);
Collections.shuffle(readers); Collections.shuffle(readers, random());
IOUtils.close(readers); IOUtils.close(readers);
w.close(); w.close();