# HG changeset patch # User Sascha L. Teichmann # Date 1348733318 0 # Node ID 5d8db3349b779bbf91c61d25e482b86ee8887606 # Parent 89ada0b9083fc07a7ad333ce5c6afffd2ece2b1f Backend: Code simplification. Removed trailing whietspace. flys-backend/trunk@5605 c6561f87-3c4e-4783-a992-168aeb5c3f6f diff -r 89ada0b9083f -r 5d8db3349b77 flys-backend/ChangeLog --- a/flys-backend/ChangeLog Thu Sep 27 07:24:07 2012 +0000 +++ b/flys-backend/ChangeLog Thu Sep 27 08:08:38 2012 +0000 @@ -1,3 +1,12 @@ +2012-09-27 Sascha L. Teichmann + + * src/main/java/de/intevation/flys/model/BedHeightSingle.java: + Replaced labeled continue by a simple break. + + * src/main/java/de/intevation/flys/utils/DgmSqlConverter.java, + src/main/java/de/intevation/flys/importer/ImportElevationModel.java: + Removed trailing whitespace. + 2012-09-27 Ingo Weinzierl * doc/schema/postgresql-spatial.sql: diff -r 89ada0b9083f -r 5d8db3349b77 flys-backend/src/main/java/de/intevation/flys/importer/ImportElevationModel.java --- a/flys-backend/src/main/java/de/intevation/flys/importer/ImportElevationModel.java Thu Sep 27 07:24:07 2012 +0000 +++ b/flys-backend/src/main/java/de/intevation/flys/importer/ImportElevationModel.java Thu Sep 27 08:08:38 2012 +0000 @@ -37,7 +37,7 @@ log.warn("No elevation model specified."); return null; } - + if (peer == null) { Session session = ImporterSession.getInstance().getDatabaseSession(); Query query = session.createQuery( diff -r 89ada0b9083f -r 5d8db3349b77 flys-backend/src/main/java/de/intevation/flys/model/BedHeightSingle.java --- a/flys-backend/src/main/java/de/intevation/flys/model/BedHeightSingle.java Thu Sep 27 07:24:07 2012 +0000 +++ b/flys-backend/src/main/java/de/intevation/flys/model/BedHeightSingle.java Thu Sep 27 08:08:38 2012 +0000 @@ -241,13 +241,13 @@ List singles = query.list(); List good = new ArrayList(); - OUTER: for (BedHeightSingle s: singles) { + for (BedHeightSingle s: singles) { for (BedHeightSingleValue value: s.getValues()) { double station = value.getStation().doubleValue(); if (station >= kmLo && station <= kmHi) { good.add(s); - continue OUTER; + break; } } } diff -r 89ada0b9083f -r 5d8db3349b77 flys-backend/src/main/java/de/intevation/flys/utils/DgmSqlConverter.java --- a/flys-backend/src/main/java/de/intevation/flys/utils/DgmSqlConverter.java Thu Sep 27 07:24:07 2012 +0000 +++ b/flys-backend/src/main/java/de/intevation/flys/utils/DgmSqlConverter.java Thu Sep 27 08:08:38 2012 +0000 @@ -40,9 +40,9 @@ * *
    full: Accepts true|false values. If true is set, all rivers * included in the CSV file are taken into account while parsing. Otherwise, - * the converter reads information for 'Saar', 'Mosel' and 'Eble' only.
+ * the converter reads information for 'Saar', 'Mosel' and 'Eble' only. * - * + * * @author Ingo Weinzierl * ingo.weinzierl@intevation.de * @@ -266,7 +266,7 @@ public void read() { info("Read DGM information from CSV file: " + csv.getAbsolutePath()); - + InputStream in = null; try { @@ -457,7 +457,7 @@ public void write() { info("Write DEM information to SQL file: " + sql.getAbsolutePath()); - + BufferedWriter bufferedWriter = null; try { bufferedWriter = new BufferedWriter(new FileWriter(sql));