[Dive4elements-commits] [PATCH] Remove dead code and warnings

Wald Commits scm-commit at wald.intevation.org
Tue Nov 13 09:56:01 CET 2012


# HG changeset patch
# User Christian Lins <christian.lins at intevation.de>
# Date 1352796929 -3600
# Node ID 79bb64f66c7464bb563664a637c7bccf86ec9675
# Parent  099d136b215bda527ff6cc64fcd7230216a9d07f
Remove dead code and warnings.

diff -r 099d136b215b -r 79bb64f66c74 flys-aft/src/main/java/de/intevation/aft/DischargeTable.java
--- a/flys-aft/src/main/java/de/intevation/aft/DischargeTable.java	Mon Nov 12 21:12:08 2012 +0100
+++ b/flys-aft/src/main/java/de/intevation/aft/DischargeTable.java	Tue Nov 13 09:55:29 2012 +0100
@@ -263,9 +263,6 @@
                 }
             }
 
-            double datumValue = rs.getDouble("PEGELNULLPUNKT");
-            Double datum = rs.wasNull() ? null : datumValue;
-
             TimeInterval timeInterval = new TimeInterval(from, to);
 
             DischargeTable dt = new DischargeTable(
diff -r 099d136b215b -r 79bb64f66c74 flys-aft/src/main/java/de/intevation/aft/River.java
--- a/flys-aft/src/main/java/de/intevation/aft/River.java	Mon Nov 12 21:12:08 2012 +0100
+++ b/flys-aft/src/main/java/de/intevation/aft/River.java	Tue Nov 13 09:55:29 2012 +0100
@@ -366,8 +366,6 @@
     )
     throws SQLException
     {
-        boolean debug = log.isDebugEnabled();
-
         int [] flysDTIds = new int[dts.size()];
 
         for (int i = 0; i < flysDTIds.length; ++i) {
diff -r 099d136b215b -r 79bb64f66c74 flys-aft/src/main/java/de/intevation/db/Statements.java
--- a/flys-aft/src/main/java/de/intevation/db/Statements.java	Mon Nov 12 21:12:08 2012 +0100
+++ b/flys-aft/src/main/java/de/intevation/db/Statements.java	Tue Nov 13 09:55:29 2012 +0100
@@ -45,7 +45,7 @@
 
         Properties properties = loadProperties();
 
-        for (Enumeration e = properties.propertyNames(); e.hasMoreElements();) {
+        for (Enumeration<?> e = properties.propertyNames(); e.hasMoreElements();) {
             String key = (String)e.nextElement();
             String value = properties.getProperty(key);
             SymbolicStatement symbolic = new SymbolicStatement(value);


More information about the Dive4elements-commits mailing list