changeset 5329:029b5f5f1dcc

Little code clean up and possible a NPE fix.
author Sascha L. Teichmann <teichmann@intevation.de>
date Fri, 15 Mar 2013 19:50:53 +0100
parents 91070b784212
children 4ccf1175be1c
files flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/map/HWSFactory.java
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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],

http://dive4elements.wald.intevation.org