[Dive4elements-commits] [PATCH] Little code clean up and possible a NPE fix

Wald Commits scm-commit at wald.intevation.org
Fri Mar 15 19:50:58 CET 2013


# HG changeset patch
# User Sascha L. Teichmann <teichmann at intevation.de>
# Date 1363373453 -3600
# Node ID 029b5f5f1dccd32d4d10cfdb440dd8a1f02c0a2e
# Parent  91070b7842120d3b4d591c1857476ee431bd8080
Little code clean up and possible a NPE fix.

diff -r 91070b784212 -r 029b5f5f1dcc flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/map/HWSFactory.java
--- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/map/HWSFactory.java	Fri Mar 15 19:41:13 2013 +0100
+++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/map/HWSFactory.java	Fri Mar 15 19:50:53 2013 +0100
@@ -122,8 +122,7 @@
         sqlQuery.setString("river", river);
         List<Object []> resultsLines = sqlQuery.list();
 
-        for (int i = 0; i < resultsLines.size(); i++) {
-            Object[] row = resultsLines.get(i);
+        for (Object [] row: resultsLines) {
             container.addHws(
                 new HWS(
                     (String) row[0],


More information about the Dive4elements-commits mailing list