aboutsummaryrefslogtreecommitdiffstats
path: root/poi/src/test
diff options
context:
space:
mode:
Diffstat (limited to 'poi/src/test')
-rw-r--r--poi/src/test/java/org/apache/poi/ss/util/TestCellRangeUtil.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/poi/src/test/java/org/apache/poi/ss/util/TestCellRangeUtil.java b/poi/src/test/java/org/apache/poi/ss/util/TestCellRangeUtil.java
index 5b402a3bcd..12b0ffcf5a 100644
--- a/poi/src/test/java/org/apache/poi/ss/util/TestCellRangeUtil.java
+++ b/poi/src/test/java/org/apache/poi/ss/util/TestCellRangeUtil.java
@@ -78,8 +78,8 @@ final class TestCellRangeUtil {
private static Set<CellAddress> getCellAddresses(CellRangeAddress[] ranges) {
final Set<CellAddress> set = new HashSet<>();
for (final CellRangeAddress range : ranges) {
- for (Iterator<CellAddress> iter = range.iterator(); iter.hasNext(); ) {
- set.add(iter.next());
+ for (CellAddress cellAddress : range) {
+ set.add(cellAddress);
}
}
return set;