diff options
author | PJ Fanning <fanningpj@apache.org> | 2022-07-16 18:08:50 +0000 |
---|---|---|
committer | PJ Fanning <fanningpj@apache.org> | 2022-07-16 18:08:50 +0000 |
commit | 22badcef272f4c61313b2ea1e520f88f9c65a400 (patch) | |
tree | 39bba51cac6807bd655bce4f878a94863470ae27 /poi/src/test | |
parent | 4f54f29a2daa62839d22804d22544e4197cfda75 (diff) | |
download | poi-22badcef272f4c61313b2ea1e520f88f9c65a400.tar.gz poi-22badcef272f4c61313b2ea1e520f88f9c65a400.zip |
[github-342] Use foreach. Thanks to XenoAmess. This closes #342
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1902778 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'poi/src/test')
-rw-r--r-- | poi/src/test/java/org/apache/poi/ss/util/TestCellRangeUtil.java | 4 |
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; |