changeset 5565:a44a3f997ec8

Cleanup whitespace. Removed unused variable.
author Sascha L. Teichmann <teichmann@intevation.de>
date Fri, 05 Apr 2013 09:03:34 +0200
parents a2da78fdbec0
children adb6c0f14810
files flys-backend/src/main/java/de/intevation/flys/importer/parsers/SedimentDensityParser.java
diffstat 1 files changed, 11 insertions(+), 14 deletions(-) [+]
line wrap: on
line diff
--- a/flys-backend/src/main/java/de/intevation/flys/importer/parsers/SedimentDensityParser.java	Fri Apr 05 08:59:35 2013 +0200
+++ b/flys-backend/src/main/java/de/intevation/flys/importer/parsers/SedimentDensityParser.java	Fri Apr 05 09:03:34 2013 +0200
@@ -25,10 +25,8 @@
     private static final Logger log =
         Logger.getLogger(SedimentDensityParser.class);
 
-    private int densitsyColumn = 1;
-
-    public static final NumberFormat nf = NumberFormat.getInstance(DEFAULT_LOCALE);
-
+    public static final NumberFormat nf =
+        NumberFormat.getInstance(DEFAULT_LOCALE);
 
     public static final Pattern META_DEPTH =
         Pattern.compile("^Tiefe: (\\w++)-(\\w++)( (\\w++))?.*");
@@ -133,28 +131,27 @@
         try {
             km          = new BigDecimal(nf.parse(vals[0]).doubleValue());
             density     = new BigDecimal(nf.parse(vals[2]).doubleValue());
-	    if (!vals[1].isEmpty()) {
-		shoreOffset = new BigDecimal(nf.parse(vals[1]).doubleValue());
-	    }
+            if (!vals[1].isEmpty()) {
+                shoreOffset = new BigDecimal(nf.parse(vals[1]).doubleValue());
+            }
         }
         catch (ParseException pe) {
             log.warn("Unparseable numbers in '" + line + "'");
         }
 
-	if (km == null || density == null) {
-	    log.warn("SDP: No km nor density given. Skip line");
-	    return;
-	}
+        if (km == null || density == null) {
+            log.warn("SDP: No km nor density given. Skip line");
+            return;
+        }
 
         BigDecimal year = null;
 
         current.addValue(new ImportSedimentDensityValue(
             km,
-	    shoreOffset,
+            shoreOffset,
             density,
             year,
-	    currentDescription)
-        );
+            currentDescription));
     }
 
 

http://dive4elements.wald.intevation.org