[PATCH 2 of 4] Cosmetics
Wald Commits
scm-commit at wald.intevation.org
Fri Aug 30 09:37:52 CEST 2013
# HG changeset patch
# User Felix Wolfsteller <felix.wolfsteller at intevation.de>
# Date 1377848704 -7200
# Node ID 51f28e5417ee56702b90e68797de080267dccb9c
# Parent 30c7e6c3e70151952a945acfdc235231372e7687
Cosmetics.
diff -r 30c7e6c3e701 -r 51f28e5417ee artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/SedimentDensityFactory.java
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/SedimentDensityFactory.java Fri Aug 30 09:44:44 2013 +0200
+++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/SedimentDensityFactory.java Fri Aug 30 09:45:04 2013 +0200
@@ -79,14 +79,13 @@
int year
) {
log.debug("getSedimentDensityUncached");
- List<Object[]> results = null;
Session session = SessionHolder.HOLDER.get();
SQLQuery sqlQuery = session.createSQLQuery(SQL_SELECT_DENSITY)
.addScalar("km", StandardBasicTypes.DOUBLE)
.addScalar("density", StandardBasicTypes.DOUBLE)
.addScalar("year", StandardBasicTypes.INTEGER);
sqlQuery.setString("name", river);
- results = sqlQuery.list();
+ List<Object[]> results = sqlQuery.list();
SedimentDensity density = new SedimentDensity();
for (Object[] row : results) {
if (row[0] != null && row[1] != null && row[2] != null) {
@@ -98,3 +97,4 @@
return density;
}
}
+// vim:set ts=4 sw=4 si et sta sts=4 fenc=utf-8 :
More information about the Dive4elements-commits
mailing list