From 068549d8a84789c4d88048f22a8d76624fb4909d Mon Sep 17 00:00:00 2001 From: Adrien Grand Date: Fri, 24 Jul 2015 15:06:56 +0000 Subject: [PATCH] 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 --- .../test/org/apache/lucene/index/TestFilterDirectoryReader.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lucene/core/src/test/org/apache/lucene/index/TestFilterDirectoryReader.java b/lucene/core/src/test/org/apache/lucene/index/TestFilterDirectoryReader.java index 47578504649..b267cc8fc17 100644 --- a/lucene/core/src/test/org/apache/lucene/index/TestFilterDirectoryReader.java +++ b/lucene/core/src/test/org/apache/lucene/index/TestFilterDirectoryReader.java @@ -64,7 +64,7 @@ public class TestFilterDirectoryReader extends LuceneTestCase { // the original reader once (as per Closeable.close() contract that close() is // idempotent) List readers = Arrays.asList(reader, wrapped); - Collections.shuffle(readers); + Collections.shuffle(readers, random()); IOUtils.close(readers); w.close();