diff artifacts/src/main/java/org/dive4elements/river/artifacts/model/WstValueTable.java @ 8856:5e38e2924c07 3.2.x

Fix code style.
author Tom Gottfried <tom@intevation.de>
date Thu, 18 Jan 2018 20:12:01 +0100
parents 93a31cfb18c0
children bcbae86ce7b3 0a5239a1e46e
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/model/WstValueTable.java	Thu Jan 18 20:10:59 2018 +0100
+++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/model/WstValueTable.java	Thu Jan 18 20:12:01 2018 +0100
@@ -761,8 +761,11 @@
     /**
      * Interpolate W and Q values at a given km.
      */
-    public double [][] interpolateWQ(double km, int steps, Calculation errors) {
-
+    public double [][] interpolateWQ(
+        double km,
+        int steps,
+        Calculation errors
+    ) {
         int rowIndex = Collections.binarySearch(rows, new Row(km));
 
         if (rowIndex >= 0) { // direct row match
@@ -989,7 +992,10 @@
                 }
             }
             if (rowBefore != null) {
-                for (int after = rowIndex, R = rows.size(); after < R; after++) {
+                for (int after = rowIndex, R = rows.size();
+                     after < R;
+                     after++
+                ) {
                     if (!Double.isNaN(rows.get(after).ws[col])) {
                         rowAfter = rows.get(after);
                         break;

http://dive4elements.wald.intevation.org