aboutsummaryrefslogtreecommitdiffstats
path: root/src/testcases
diff options
context:
space:
mode:
authorJaven O'Neal <onealj@apache.org>2017-11-07 07:26:48 +0000
committerJaven O'Neal <onealj@apache.org>2017-11-07 07:26:48 +0000
commit888a08b98d121c1c063c68c87ec5f68564d034a2 (patch)
tree60c6ba8a85be18184b470ba2d4c39c5625be694e /src/testcases
parent8a6d6c8cba22bf8f1c796d7f97cef406472edcb2 (diff)
downloadpoi-888a08b98d121c1c063c68c87ec5f68564d034a2.tar.gz
poi-888a08b98d121c1c063c68c87ec5f68564d034a2.zip
bug 61730: remove asSet function from unit test
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1814462 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/testcases')
-rw-r--r--src/testcases/org/apache/poi/ss/util/TestCellRangeUtil.java6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/testcases/org/apache/poi/ss/util/TestCellRangeUtil.java b/src/testcases/org/apache/poi/ss/util/TestCellRangeUtil.java
index 786fdaaaf5..3fbf3dd487 100644
--- a/src/testcases/org/apache/poi/ss/util/TestCellRangeUtil.java
+++ b/src/testcases/org/apache/poi/ss/util/TestCellRangeUtil.java
@@ -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;
}