[PATCH 06 of 10] Use foreach instead of for-loop
Wald Commits
scm-commit at wald.intevation.org
Mon Jul 29 09:25:57 CEST 2013
# HG changeset patch
# User Felix Wolfsteller <felix.wolfsteller at intevation.de>
# Date 1375082656 -7200
# Node ID e316a9c626e03cfbd3563645a7a1987725421147
# Parent b9dd591b3fbd7720b053e9b0854aa70eb2bf0156
Use foreach instead of for-loop.
diff -r b9dd591b3fbd -r e316a9c626e0 artifacts/src/main/java/org/dive4elements/river/exports/minfo/BedDifferenceExporter.java
--- a/artifacts/src/main/java/org/dive4elements/river/exports/minfo/BedDifferenceExporter.java Mon Jul 29 09:23:20 2013 +0200
+++ b/artifacts/src/main/java/org/dive4elements/river/exports/minfo/BedDifferenceExporter.java Mon Jul 29 09:24:16 2013 +0200
@@ -83,8 +83,7 @@
NumberFormat kmf = Formatter.getCalculationKm(context.getMeta());
NumberFormat mf = Formatter.getMeterFormat(context);
- for (int i = 0; i < results.length; i++) {
- BedDifferencesResult result = results[i];
+ for (BedDifferencesResult result : results) {
double[][] kms = result.getDifferencesData();
for (int j = 0; j < kms[0].length; j++) {
writer.writeNext(new String[] {
@@ -192,3 +191,4 @@
}
}
+// vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :
More information about the Dive4elements-commits
mailing list