changeset 8857:0071702ba03f 3.2.x

Fix diverse coding issues.
author Tom Gottfried <tom@intevation.de>
date Thu, 18 Jan 2018 20:37:25 +0100
parents 5e38e2924c07
children a805211690f7
files artifacts/src/main/java/org/dive4elements/river/artifacts/states/minfo/BedQualityDistanceSelect.java artifacts/src/main/java/org/dive4elements/river/exports/TimeseriesChartGenerator.java backend/src/main/java/org/dive4elements/river/backend/utils/DBCPConnectionProvider.java
diffstat 3 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/states/minfo/BedQualityDistanceSelect.java	Thu Jan 18 20:12:01 2018 +0100
+++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/states/minfo/BedQualityDistanceSelect.java	Thu Jan 18 20:37:25 2018 +0100
@@ -8,7 +8,6 @@
 
 package org.dive4elements.river.artifacts.states.minfo;
 
-import java.util.Date;
 import java.util.List;
 
 import org.w3c.dom.Element;
--- a/artifacts/src/main/java/org/dive4elements/river/exports/TimeseriesChartGenerator.java	Thu Jan 18 20:12:01 2018 +0100
+++ b/artifacts/src/main/java/org/dive4elements/river/exports/TimeseriesChartGenerator.java	Thu Jan 18 20:37:25 2018 +0100
@@ -423,13 +423,13 @@
         if (rx == null) {
             log.warn("Range for x axis not set." +
                         " Using default values: 0 - 1.");
-            rx = new TimeBounds(0l, 1l);
+            rx = new TimeBounds(0L, 1L);
         }
 
         if (ry == null) {
             log.warn("Range for y axis not set." +
                         " Using default values: 0 - 1.");
-            ry = new DoubleBounds(0l, 1l);
+            ry = new DoubleBounds(0L, 1L);
         }
 
         log.debug("X Bounds at index " + index + " is: " + rx);
--- a/backend/src/main/java/org/dive4elements/river/backend/utils/DBCPConnectionProvider.java	Thu Jan 18 20:12:01 2018 +0100
+++ b/backend/src/main/java/org/dive4elements/river/backend/utils/DBCPConnectionProvider.java	Thu Jan 18 20:37:25 2018 +0100
@@ -163,7 +163,8 @@
 
             // Copy all DBCP properties removing the prefix
             for (Iterator iter = props.entrySet().iterator();
-                 iter.hasNext(); ) {
+                 iter.hasNext();
+            ) {
                 Map.Entry entry = (Map.Entry)iter.next();
                 String    key   = (String)entry.getKey();
                 if (key.startsWith(PREFIX)) {

http://dive4elements.wald.intevation.org