[Dive4elements-commits] [PATCH 3 of 7] Removed obsolete member and minor code style

Wald Commits scm-commit at wald.intevation.org
Tue Jun 11 09:21:29 CEST 2013


# HG changeset patch
# User Raimund Renkert <rrenkert at intevation.de>
# Date 1370935001 -7200
# Node ID 06ee8e2f8b0b0fd7c7d49d8463211963a4719424
# Parent  11d76162eca171402e814b4ee454b66b238026ca
Removed obsolete member and minor code style.

diff -r 11d76162eca1 -r 06ee8e2f8b0b artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/BedDiameterDataFacet.java
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/BedDiameterDataFacet.java	Tue Jun 11 09:14:12 2013 +0200
+++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/BedDiameterDataFacet.java	Tue Jun 11 09:16:41 2013 +0200
@@ -16,9 +16,6 @@
 {
     private static final Logger logger = Logger.getLogger(BedDiameterDataFacet.class);
 
-    private String diameter;
-    private boolean subCap;
-
     public BedDiameterDataFacet() {
     }
 
@@ -72,11 +69,11 @@
         for (QualityMeasurement m : measurements.getMeasurements()) {
             if (top == 1 && m.getDepth1() == 0d && m.getDepth2() <= 0.3) {
                 kms.add(m.getKm());
-                data.add(m.getDiameter(diameter)*1000);
+                data.add(m.getDiameter(diameter) * 1000);
             }
             else if (top == 0 && m.getDepth1() > 0d && m.getDepth2() <= 0.5){
                 kms.add(m.getKm());
-                data.add(m.getDiameter(diameter)* 1000);
+                data.add(m.getDiameter(diameter) * 1000);
             }
         }
         BedDiameterData bdd = new BedDiameterData(diameter, kms, data);
@@ -91,7 +88,6 @@
         copy.type = type;
         copy.hash = hash;
         copy.stateId = stateId;
-        copy.diameter = diameter;
         return copy;
     }
 }


More information about the Dive4elements-commits mailing list