commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1441284 - /commons/proper/io/trunk/src/test/java/org/apache/commons/io/comparator/CompositeFileComparatorTest.java
Date Fri, 01 Feb 2013 00:52:01 GMT
Author: sebb
Date: Fri Feb  1 00:52:00 2013
New Revision: 1441284

URL: http://svn.apache.org/viewvc?rev=1441284&view=rev
Log:
Fix warning:
Type safety: A generic array of Comparator<File> is created for a varargs parameter

Modified:
    commons/proper/io/trunk/src/test/java/org/apache/commons/io/comparator/CompositeFileComparatorTest.java

Modified: commons/proper/io/trunk/src/test/java/org/apache/commons/io/comparator/CompositeFileComparatorTest.java
URL: http://svn.apache.org/viewvc/commons/proper/io/trunk/src/test/java/org/apache/commons/io/comparator/CompositeFileComparatorTest.java?rev=1441284&r1=1441283&r2=1441284&view=diff
==============================================================================
--- commons/proper/io/trunk/src/test/java/org/apache/commons/io/comparator/CompositeFileComparatorTest.java
(original)
+++ commons/proper/io/trunk/src/test/java/org/apache/commons/io/comparator/CompositeFileComparatorTest.java
Fri Feb  1 00:52:00 2013
@@ -39,8 +39,10 @@ public class CompositeFileComparatorTest
     @Override
     protected void setUp() throws Exception {
         super.setUp();
-        comparator = new CompositeFileComparator(SizeFileComparator.SIZE_COMPARATOR,
-                                                 ExtensionFileComparator.EXTENSION_COMPARATOR);
+        comparator = new CompositeFileComparator(
+                new AbstractFileComparator[] {
+                    SizeFileComparator.SIZE_COMPARATOR,
+                    ExtensionFileComparator.EXTENSION_COMPARATOR});
         reverse = new ReverseComparator(comparator);
         final File dir = getTestDirectory();
         lessFile   = new File(dir, "xyz.txt");



Mime
View raw message