changeset 1115:eaf32c767bac

Cosmetics. flys-artifacts/trunk@2622 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Wed, 31 Aug 2011 12:20:23 +0000
parents 9cc658cc4e20
children 05e4ef0f9489
files flys-artifacts/ChangeLog flys-artifacts/src/main/java/de/intevation/flys/artifacts/WINFOArtifact.java
diffstat 2 files changed, 13 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/flys-artifacts/ChangeLog	Wed Aug 31 10:43:21 2011 +0000
+++ b/flys-artifacts/ChangeLog	Wed Aug 31 12:20:23 2011 +0000
@@ -1,3 +1,10 @@
+2011-08-31  Felix Wolfsteller <felix.wolfsteller@intevation.de>
+
+	Cosmetics.
+
+	* src/main/java/de/intevation/flys/artifacts/WINFOArtifact.java:
+	  Cosmetics.
+
 2011-08-31  Felix Wolfsteller <felix.wolfsteller@intevation.de>
 
 	Cosmetics.
--- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/WINFOArtifact.java	Wed Aug 31 10:43:21 2011 +0000
+++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/WINFOArtifact.java	Wed Aug 31 12:20:23 2011 +0000
@@ -27,7 +27,6 @@
 import de.intevation.flys.artifacts.model.CalculationResult;
 import de.intevation.flys.artifacts.model.DischargeTables;
 import de.intevation.flys.artifacts.model.MainValuesFactory;
-import de.intevation.flys.artifacts.model.RiverFactory;
 import de.intevation.flys.artifacts.model.Segment;
 import de.intevation.flys.artifacts.model.WQKms;
 import de.intevation.flys.artifacts.model.WstValueTable;
@@ -75,10 +74,10 @@
     public static final String XPATH_STATIC_UI ="/art:result/art:ui/art:static";
 
     /** The default number of steps between the start end end of a selected Q
-     * range.*/
+     * range. */
     public static final int DEFAULT_Q_STEPS = 30;
 
-    /** The default step width between the start end end kilometer.*/
+    /** The default step width between the start end end kilometer. */
     public static final double DEFAULT_KM_STEPS = 0.1;
 
 
@@ -349,6 +348,7 @@
         return computeWaterlevelData(kms, qs, ws, wst, refKm);
     }
 
+
     /**
      * Computes the data of a waterlevel computation based on the interpolation
      * in WstValueTable.
@@ -866,7 +866,7 @@
      */
     public boolean isFreeQ() {
         StateData mode  = getData("wq_free");
-        String    value = mode != null ? (String) mode.getValue() : null;
+        String    value = (mode != null) ? (String) mode.getValue() : null;
 
         logger.debug("isFreeQ: " + value);
 
@@ -889,7 +889,7 @@
         StateData dMode   = getData("wq_mode");
         StateData dValues = getData("wq_values");
 
-        String mode = dMode != null ? (String) dMode.getValue() : "";
+        String mode = (dMode != null) ? (String) dMode.getValue() : "";
 
         if (mode.equals("Q")) {
             return getWQForDist(range);
@@ -911,7 +911,7 @@
         StateData dMode   = getData("wq_mode");
         StateData dValues = getData("wq_values");
 
-        String mode = dMode != null ? (String) dMode.getValue() : "";
+        String mode = (dMode != null) ? (String) dMode.getValue() : "";
 
         if (mode.equals("W")) {
             return getWQForDist(range);

http://dive4elements.wald.intevation.org