changeset 1093:139e7df1787c

Cosmetics. flys-artifacts/trunk@2596 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Fri, 26 Aug 2011 12:45:32 +0000
parents 0eb585cd3882
children b1c6d945848d
files flys-artifacts/ChangeLog flys-artifacts/src/main/java/de/intevation/flys/artifacts/MainValuesArtifact.java
diffstat 2 files changed, 7 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/flys-artifacts/ChangeLog	Fri Aug 26 12:44:12 2011 +0000
+++ b/flys-artifacts/ChangeLog	Fri Aug 26 12:45:32 2011 +0000
@@ -1,3 +1,8 @@
+2011-08-26  Felix Wolfsteller <felix.wolfsteller@intevation.de>
+
+	* src/main/java/de/intevation/flys/artifacts/MainValuesArtifact.java:
+	  Cosmetic, remove debug output and comments, minor style adjustments.
+
 2011-08-26  Felix Wolfsteller <felix.wolfsteller@intevation.de>
 
 	Added limited themeing-support for MainValues.
--- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/MainValuesArtifact.java	Fri Aug 26 12:44:12 2011 +0000
+++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/MainValuesArtifact.java	Fri Aug 26 12:45:32 2011 +0000
@@ -67,8 +67,6 @@
     {
         logger.debug("MainValuesArtifact.setup");
         super.setup(identifier, factory, context, callMeta, data);
-        // TODO in initialize(*), access master/winfo artifact,
-        // get locations and river.
     }
 
 
@@ -76,9 +74,7 @@
     protected void initialize(Artifact artifact, Object context, CallMeta meta) {
         logger.debug("MainValuesArtifact.initialize");
         WINFOArtifact winfo = (WINFOArtifact) artifact;
-        //River river = winfo.getRiver();
         double location = winfo.getLocations()[0];
-        logger.debug("MainValues.location: " + location);
         addData("location", new DefaultStateData("location", null, null,
                     String.valueOf(location)));
         addData("river", winfo.getData("river"));
@@ -155,6 +151,7 @@
         return state;
     }
 
+
     /**
      * Get the river.
      * @todo resolve, this is a duplicate of WINFOArtifact.
@@ -167,6 +164,7 @@
             : null;
     }
 
+
     /**
      * Access the Gauge that the mainvalues are taken from.
      * @return Gauge that main values are taken from or null in case of
@@ -227,7 +225,6 @@
         List<NamedDouble> filteredList = new ArrayList<NamedDouble>();
         Gauge gauge = getGauge();
         double datum = gauge.getDatum().doubleValue();
-        logger.debug("DATUM:: " + datum);
         if (gauge != null) {
             List<MainValue> orig = gauge.getMainValues();
             for (MainValue mv : orig) {

http://dive4elements.wald.intevation.org