changeset 8778:bbf6cf555e89

Tidied.
author Tom Gottfried <tom@intevation.de>
date Thu, 03 Dec 2015 12:20:03 +0100
parents 9d2a0827ec03
children 50ff99266e0e
files artifacts/src/main/java/org/dive4elements/river/exports/DiagramGenerator.java artifacts/src/main/java/org/dive4elements/river/exports/XYChartGenerator.java
diffstat 2 files changed, 14 insertions(+), 13 deletions(-) [+]
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/exports/DiagramGenerator.java	Wed Dec 02 20:20:03 2015 +0100
+++ b/artifacts/src/main/java/org/dive4elements/river/exports/DiagramGenerator.java	Thu Dec 03 12:20:03 2015 +0100
@@ -818,12 +818,10 @@
         double min  = bounds.getLower().doubleValue();
         double max  = bounds.getUpper().doubleValue();
 
-        if (log.isDebugEnabled()) {
-            log.debug("Minimum is: " + min);
-            log.debug("Maximum is: " + max);
-            log.debug("Lower zoom is: " + range.getLowerBound());
-            log.debug("Upper zoom is: " + range.getUpperBound());
-        }
+        log.debug("Minimum is: " + min);
+        log.debug("Maximum is: " + max);
+        log.debug("Lower zoom is: " + range.getLowerBound());
+        log.debug("Upper zoom is: " + range.getUpperBound());
 
         double diff = max > min ? max - min : min - max;
 
--- a/artifacts/src/main/java/org/dive4elements/river/exports/XYChartGenerator.java	Wed Dec 02 20:20:03 2015 +0100
+++ b/artifacts/src/main/java/org/dive4elements/river/exports/XYChartGenerator.java	Thu Dec 03 12:20:03 2015 +0100
@@ -678,7 +678,12 @@
      *
      * @return true, if a zoom range was specified, otherwise false.
      */
-    protected boolean zoom(XYPlot plot, ValueAxis axis, Bounds bounds, Range x) {
+    protected boolean zoom(
+        XYPlot plot,
+        ValueAxis axis,
+        Bounds bounds,
+        Range x
+    ) {
 
         if (bounds == null) {
             return false;
@@ -708,12 +713,10 @@
         double min  = bounds.getLower().doubleValue();
         double max  = bounds.getUpper().doubleValue();
 
-        if (log.isDebugEnabled()) {
-            log.debug("Minimum is: " + min);
-            log.debug("Maximum is: " + max);
-            log.debug("Lower zoom is: " + range.getLowerBound());
-            log.debug("Upper zoom is: " + range.getUpperBound());
-        }
+        log.debug("Minimum is: " + min);
+        log.debug("Maximum is: " + max);
+        log.debug("Lower zoom is: " + range.getLowerBound());
+        log.debug("Upper zoom is: " + range.getUpperBound());
 
         double diff = max > min ? max - min : min - max;
 

http://dive4elements.wald.intevation.org