[PATCH] Replaced tabs with 4 spaces

Wald Commits scm-commit at wald.intevation.org
Thu Oct 17 15:13:36 CEST 2013


# HG changeset patch
# User Sascha L. Teichmann <teichmann at intevation.de>
# Date 1382015612 -7200
# Node ID 450582bcad75d112ef9e22340707708de253c077
# Parent  82191d111130bea8c4f8c8ffa153d2e46a841c44
Replaced tabs with 4 spaces.

diff -r 82191d111130 -r 450582bcad75 backend/src/main/java/org/dive4elements/river/importer/parsers/WstParser.java
--- a/backend/src/main/java/org/dive4elements/river/importer/parsers/WstParser.java	Thu Oct 17 15:05:08 2013 +0200
+++ b/backend/src/main/java/org/dive4elements/river/importer/parsers/WstParser.java	Thu Oct 17 15:13:32 2013 +0200
@@ -120,12 +120,12 @@
 
         log.info("Parsing WST file '" + file + "'");
 
-	if (wst == null) {
-	    wst = new ImportWst(file.getName());
-	}
-	else {
-	    wst.setDescription(file.getName());
-	}
+        if (wst == null) {
+            wst = new ImportWst(file.getName());
+        }
+        else {
+            wst.setDescription(file.getName());
+        }
 
         LineNumberReader in =
             new LineNumberReader(
@@ -348,7 +348,7 @@
                         throw new ParseException("Stations in " + file + 
                             " near line " + in.getLineNumber() + 
                             " not ordered. File rejected.");
-		    }
+                    }
 
                     // remember stations in two previous lines
                     kmHist2 = kmHist1;
@@ -409,12 +409,12 @@
             // in case there was no further Q-line
             // but only if there were values following the last Q-line
             if (minKm != MAX_RANGE && maxKm != MIN_RANGE) {
-		if (kmHist1 != null && kmHist2 != null
-		&& kmHist1.compareTo(kmHist2) < 0) { // stations descending in file
-		    BigDecimal t = minKm; minKm = maxKm; maxKm = t;
-		}
-		addInterval(minKm, maxKm, aktAbfluesse);
-	    }
+                if (kmHist1 != null && kmHist2 != null
+                && kmHist1.compareTo(kmHist2) < 0) { // stations descending in file
+                    BigDecimal t = minKm; minKm = maxKm; maxKm = t;
+                }
+                addInterval(minKm, maxKm, aktAbfluesse);
+            }
         }
         finally {
             in.close();
@@ -452,15 +452,15 @@
             return;
         }
 
-	// expand single-line i.e. 0-lenght Q-range to minimal length
-	if (from == to) {
-	    if (lastRange != null && lastA > lastB) {
-		to = new BigDecimal(from.doubleValue() - INTERVAL_GAP);
-	    }
-	    else {
-		to = new BigDecimal(from.doubleValue() + INTERVAL_GAP);
-	    }
-	}
+        // expand single-line i.e. 0-lenght Q-range to minimal length
+        if (from == to) {
+            if (lastRange != null && lastA > lastB) {
+                to = new BigDecimal(from.doubleValue() - INTERVAL_GAP);
+            }
+            else {
+                to = new BigDecimal(from.doubleValue() + INTERVAL_GAP);
+            }
+        }
 
         ImportRange range = new ImportRange(from, to);
 


More information about the Dive4elements-commits mailing list