diff artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/BedQualityDataFacet.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 4b00ee858964
children 0a5239a1e46e
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/BedQualityDataFacet.java	Thu Jan 18 20:10:59 2018 +0100
+++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/BedQualityDataFacet.java	Thu Jan 18 20:12:01 2018 +0100
@@ -28,15 +28,23 @@
 
     private static Logger log = Logger.getLogger(BedQualityDataFacet.class);
 
-    private String valueName; /* Name of the ResultValue underlying this facet */
-    private String valueType; /* Type of the ResultValue underlying this facet */
+    private String valueName; /* Name of ResultValue underlying this facet */
+    private String valueType; /* Type of ResultValue underlying this facet */
 
     public BedQualityDataFacet() {
         // required for clone operation deepCopy()
     }
 
-    public BedQualityDataFacet(int idx, String name, String description,
-        ComputeType type, String stateId, String hash, String valueName, String valueType) {
+    public BedQualityDataFacet(
+        int idx,
+        String name,
+        String description,
+        ComputeType type,
+        String stateId,
+        String hash,
+        String valueName,
+        String valueType
+    ) {
         super(idx, name, description, type, hash, stateId);
         this.valueName = valueName;
         this.valueType = valueType;
@@ -44,7 +52,8 @@
         if (!valueName.equals("porosity") && !valueName.equals("density")) {
             this.metaData.put("Y", "chart.bedquality.yaxis.label.diameter");
         } else {
-            this.metaData.put("Y", "chart.bedquality.yaxis.label." + valueName);
+            this.metaData.put(
+                "Y", "chart.bedquality.yaxis.label." + valueName);
         }
     }
 
@@ -54,12 +63,13 @@
 
         D4EArtifact flys = (D4EArtifact) artifact;
 
-        CalculationResult res = (CalculationResult) flys.compute(context, hash,
-            stateId, type, false);
+        CalculationResult res = (CalculationResult)flys.compute(
+            context, hash, stateId, type, false);
 
         int ndx = index >> 8;
         BedQualityResultValue value =
-            ((BedQualityResult[]) res.getData())[ndx].getValue(valueName, valueType);
+            ((BedQualityResult[]) res.getData())[ndx].getValue(
+                valueName, valueType);
 
         if (value == null) {
             /* Other facets check this so we do too */

http://dive4elements.wald.intevation.org