# HG changeset patch # User Tom Gottfried # Date 1449141603 -3600 # Node ID bbf6cf555e89338e8d0db8a949a4215408d4b0e3 # Parent 9d2a0827ec03b53c2260aaccd6d2319a97cd723d Tidied. diff -r 9d2a0827ec03 -r bbf6cf555e89 artifacts/src/main/java/org/dive4elements/river/exports/DiagramGenerator.java --- 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; diff -r 9d2a0827ec03 -r bbf6cf555e89 artifacts/src/main/java/org/dive4elements/river/exports/XYChartGenerator.java --- 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;