mirror of https://github.com/apache/poi.git
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:
parent
8a6d6c8cba
commit
888a08b98d
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue