lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jpou...@apache.org
Subject svn commit: r1692533 - /lucene/dev/trunk/lucene/core/src/test/org/apache/lucene/index/TestFilterDirectoryReader.java
Date Fri, 24 Jul 2015 15:06:57 GMT
Author: jpountz
Date: Fri Jul 24 15:06:56 2015
New Revision: 1692533

URL: http://svn.apache.org/r1692533
Log:
LUCENE-6696: Don't use the forbidden API Collections.shuffle(List).

Modified:
    lucene/dev/trunk/lucene/core/src/test/org/apache/lucene/index/TestFilterDirectoryReader.java

Modified: lucene/dev/trunk/lucene/core/src/test/org/apache/lucene/index/TestFilterDirectoryReader.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/lucene/core/src/test/org/apache/lucene/index/TestFilterDirectoryReader.java?rev=1692533&r1=1692532&r2=1692533&view=diff
==============================================================================
--- lucene/dev/trunk/lucene/core/src/test/org/apache/lucene/index/TestFilterDirectoryReader.java
(original)
+++ lucene/dev/trunk/lucene/core/src/test/org/apache/lucene/index/TestFilterDirectoryReader.java
Fri Jul 24 15:06:56 2015
@@ -64,7 +64,7 @@ public class TestFilterDirectoryReader e
     // the original reader once (as per Closeable.close() contract that close() is
     // idempotent)
     List<DirectoryReader> readers = Arrays.asList(reader, wrapped);
-    Collections.shuffle(readers);
+    Collections.shuffle(readers, random());
     IOUtils.close(readers);
 
     w.close();



Mime
View raw message