You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by us...@apache.org on 2011/03/24 16:42:39 UTC

svn commit: r1085006 - in /lucene/dev/branches/branch_3x: ./ lucene/ lucene/src/test/org/apache/lucene/util/TestCollectionUtil.java solr/

Author: uschindler
Date: Thu Mar 24 15:42:39 2011
New Revision: 1085006

URL: http://svn.apache.org/viewvc?rev=1085006&view=rev
Log:
LUCENE-2989: Fix TestCollectionUtil to not fail on IBM JRE

Modified:
    lucene/dev/branches/branch_3x/   (props changed)
    lucene/dev/branches/branch_3x/lucene/   (props changed)
    lucene/dev/branches/branch_3x/lucene/src/test/org/apache/lucene/util/TestCollectionUtil.java
    lucene/dev/branches/branch_3x/solr/   (props changed)

Modified: lucene/dev/branches/branch_3x/lucene/src/test/org/apache/lucene/util/TestCollectionUtil.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_3x/lucene/src/test/org/apache/lucene/util/TestCollectionUtil.java?rev=1085006&r1=1085005&r2=1085006&view=diff
==============================================================================
--- lucene/dev/branches/branch_3x/lucene/src/test/org/apache/lucene/util/TestCollectionUtil.java (original)
+++ lucene/dev/branches/branch_3x/lucene/src/test/org/apache/lucene/util/TestCollectionUtil.java Thu Mar 24 15:42:39 2011
@@ -91,7 +91,7 @@ public class TestCollectionUtil extends 
   
   // should produce no exceptions
   public void testEmptyArraySort() {
-    List<Integer> list = Collections.emptyList();
+    List<Integer> list = Arrays.asList(new Integer[0]);
     CollectionUtil.quickSort(list);
     CollectionUtil.mergeSort(list);
     CollectionUtil.insertionSort(list);