diff artifacts/src/main/java/org/dive4elements/river/artifacts/states/sq/SQStaticState.java @ 8856:5e38e2924c07 3.2.x

Fix code style.
author Tom Gottfried <tom@intevation.de>
date Thu, 18 Jan 2018 20:12:01 +0100
parents 9a5b3079aad4
children 0a5239a1e46e
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/states/sq/SQStaticState.java	Thu Jan 18 20:10:59 2018 +0100
+++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/states/sq/SQStaticState.java	Thu Jan 18 20:12:01 2018 +0100
@@ -63,7 +63,8 @@
             ms = Integer.parseInt(measurementStation);
         }
         catch (NumberFormatException nfe) {
-            log.error("Unparseable measurement station: " + measurementStation);
+            log.error("Unparseable measurement station: "
+                + measurementStation);
             return null;
         }
         log.debug("Parsed measurement station: " + ms);
@@ -71,7 +72,9 @@
         sqRelations = StaticSQFactory.getSQRelationsForLocation(river, ms);
         DateFormat df = new SimpleDateFormat("yyyy");
 
-        for (StaticSQRelation.Parameter p: StaticSQRelation.Parameter.values()) {
+        for (
+            StaticSQRelation.Parameter p: StaticSQRelation.Parameter.values()
+        ) {
             log.debug("parameter: " + p.toString());
             List<StaticSQRelation> relations =
                 sqRelations.getRelationsByParameter(p);
@@ -81,7 +84,8 @@
 
                 for (StaticSQRelation relation : relations) {
                     log.debug("add facet for " + p.toString().toLowerCase());
-                    String name = "sq_" + p.toString().toLowerCase() + "_curve";
+                    String name = "sq_" + p.toString().toLowerCase()
+                        + "_curve";
                     String desc =
                         Resources.getMsg(context.getMeta(),
                             FACET_DESCRIPTION,
@@ -125,11 +129,12 @@
         }
 
         if (static_id != -1) {
-            // If the next line fails a traceback is the best debug output anyhow
+            // If next line fails a traceback is the best debug output anyhow
             sqRelations = StaticSQFactory.getDistinctRelation(static_id);
             log.debug("Got a distinct relation" + sqRelations);
         } else {
-            StaticSQRelationAccess access = new StaticSQRelationAccess(artifact);
+            StaticSQRelationAccess access =
+                new StaticSQRelationAccess(artifact);
             String river = access.getRiverName();
             String measurementStation = access.getMeasurementStation();
 
@@ -138,7 +143,8 @@
                 ms = Integer.parseInt(measurementStation);
             }
             catch (NumberFormatException nfe) {
-                log.error("Unparseable measurement station: " + measurementStation);
+                log.error("Unparseable measurement station: "
+                    + measurementStation);
                 return null;
             }
             log.debug("Parsed measurement station: " + ms);
@@ -148,7 +154,9 @@
 
         DateFormat df = new SimpleDateFormat("yyyy");
 
-        for (StaticSQRelation.Parameter p: StaticSQRelation.Parameter.values()) {
+        for (
+            StaticSQRelation.Parameter p: StaticSQRelation.Parameter.values()
+        ) {
 
             List<StaticSQRelation> relations =
                 sqRelations.getRelationsByParameter(p);
@@ -157,7 +165,8 @@
                 int count = 0;
 
                 for (StaticSQRelation relation : relations) {
-                    String name = "sq_" + p.toString().toLowerCase() + "_curve";
+                    String name = "sq_" + p.toString().toLowerCase()
+                        + "_curve";
                     String desc = static_desc == null ?
                         Resources.getMsg(meta,
                             FACET_DESCRIPTION,

http://dive4elements.wald.intevation.org