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
This commit is contained in:
Javen O'Neal 2017-11-07 07:26:48 +00:00
parent 8a6d6c8cba
commit 888a08b98d
1 changed files with 1 additions and 5 deletions

View File

@ -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;
}