poi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From one...@apache.org
Subject svn commit: r1814462 - /poi/trunk/src/testcases/org/apache/poi/ss/util/TestCellRangeUtil.java
Date Tue, 07 Nov 2017 07:26:48 GMT
Author: onealj
Date: Tue Nov  7 07:26:48 2017
New Revision: 1814462

URL: http://svn.apache.org/viewvc?rev=1814462&view=rev
Log:
bug 61730: remove asSet function from unit test

Modified:
    poi/trunk/src/testcases/org/apache/poi/ss/util/TestCellRangeUtil.java

Modified: poi/trunk/src/testcases/org/apache/poi/ss/util/TestCellRangeUtil.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/testcases/org/apache/poi/ss/util/TestCellRangeUtil.java?rev=1814462&r1=1814461&r2=1814462&view=diff
==============================================================================
--- poi/trunk/src/testcases/org/apache/poi/ss/util/TestCellRangeUtil.java (original)
+++ poi/trunk/src/testcases/org/apache/poi/ss/util/TestCellRangeUtil.java Tue Nov  7 07:26:48
2017
@@ -78,15 +78,11 @@ public final class TestCellRangeUtil {
     private static Set<CellAddress> getCellAddresses(CellRangeAddress[] ranges) {
         final Set<CellAddress> set = new HashSet<>();
         for (final CellRangeAddress range : ranges) {
-            set.addAll(asSet(range.iterator()));
+            set.addAll(IteratorUtils.toList(range.iterator()));
         }
         return set;
     }
             
-    private static <T> Set<T> asSet(Iterator<T> iterator) {
-        return new HashSet<T>(IteratorUtils.toList(iterator));
-    }
-
     private static <T> T[] asArray(T...ts) {
         return ts;
     }



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@poi.apache.org
For additional commands, e-mail: commits-help@poi.apache.org


Mime
View raw message