aboutsummaryrefslogtreecommitdiffstats
path: root/src/testcases/org/apache/poi/ss/formula/function
diff options
context:
space:
mode:
authorJaven O'Neal <onealj@apache.org>2016-10-19 22:28:07 +0000
committerJaven O'Neal <onealj@apache.org>2016-10-19 22:28:07 +0000
commite88722f05275c24acb78a1442cd9c09a83cc6c00 (patch)
tree0d2d976122f3a13ea5eaf613569b0086e08d5975 /src/testcases/org/apache/poi/ss/formula/function
parent99125ee19173959d42553f78c9ea936648f904b8 (diff)
downloadpoi-e88722f05275c24acb78a1442cd9c09a83cc6c00.tar.gz
poi-e88722f05275c24acb78a1442cd9c09a83cc6c00.zip
Eclipse automated refactor/cleanup: convert for loops to for-each loops
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1765728 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/testcases/org/apache/poi/ss/formula/function')
-rw-r--r--src/testcases/org/apache/poi/ss/formula/function/ExcelFileFormatDocFunctionExtractor.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/testcases/org/apache/poi/ss/formula/function/ExcelFileFormatDocFunctionExtractor.java b/src/testcases/org/apache/poi/ss/formula/function/ExcelFileFormatDocFunctionExtractor.java
index aada5e7240..2dab84ca7e 100644
--- a/src/testcases/org/apache/poi/ss/formula/function/ExcelFileFormatDocFunctionExtractor.java
+++ b/src/testcases/org/apache/poi/ss/formula/function/ExcelFileFormatDocFunctionExtractor.java
@@ -219,8 +219,8 @@ public final class ExcelFileFormatDocFunctionExtractor {
Arrays.sort(keys);
_ps.println("# " + headingText);
- for (int i = 0; i < keys.length; i++) {
- FunctionData fd = _allFunctionsByIndex.get(keys[i]);
+ for (Integer key : keys) {
+ FunctionData fd = _allFunctionsByIndex.get(key);
_ps.println(fd.formatAsDataLine());
}
}
@@ -554,9 +554,9 @@ public final class ExcelFileFormatDocFunctionExtractor {
"See the License for the specific language governing permissions and",
"limitations under the License.",
};
- for (int i = 0; i < lines.length; i++) {
+ for (String line : lines) {
ps.print("# ");
- ps.println(lines[i]);
+ ps.println(line);
}
ps.println();
}