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
163673a7aa
commit
8b0145c6e0
@ -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…
x
Reference in New Issue
Block a user