[Dive4elements-commits] [PATCH 2 of 2] Cleanup whitespace. Removed unused variable

Wald Commits scm-commit at wald.intevation.org
Fri Apr 5 09:05:22 CEST 2013


# HG changeset patch
# User Sascha L. Teichmann <teichmann at intevation.de>
# Date 1365145414 -7200
# Node ID a44a3f997ec85c553245d5617c0953160108c238
# Parent  a2da78fdbec090a2ae9a19da2eb04ca6f0a08835
Cleanup whitespace. Removed unused variable.

diff -r a2da78fdbec0 -r a44a3f997ec8 flys-backend/src/main/java/de/intevation/flys/importer/parsers/SedimentDensityParser.java
--- 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));
     }
 
 


More information about the Dive4elements-commits mailing list