diff backend/src/main/java/org/dive4elements/river/importer/ImportRange.java @ 7376:4b26fd60105f

Replaced more tabs with spaces + minor cosmetics (removed out commented code from double precision branch).
author Sascha L. Teichmann <teichmann@intevation.de>
date Thu, 17 Oct 2013 15:26:12 +0200
parents 70ab9e8cdefb
children 9d2e69f971f5
line wrap: on
line diff
--- a/backend/src/main/java/org/dive4elements/river/importer/ImportRange.java	Thu Oct 17 15:13:32 2013 +0200
+++ b/backend/src/main/java/org/dive4elements/river/importer/ImportRange.java	Thu Oct 17 15:26:12 2013 +0200
@@ -32,7 +32,7 @@
 
     public ImportRange(BigDecimal a, BigDecimal b) {
 
-	// enforce a<b and set only a for zero-length ranges
+        // enforce a<b and set only a for zero-length ranges
         if (a != null && b == null) {
             this.a = a;
             this.b = null;
@@ -50,7 +50,7 @@
         }
         else {
             if (a.compareTo(b) > 0) {
-		BigDecimal t = a; a = b; b = t;
+                BigDecimal t = a; a = b; b = t;
             }
             this.a = a;
             this.b = b;
@@ -84,9 +84,7 @@
         if (this.b != null && a.compareTo(b) >= 0) {
             throw new IllegalArgumentException("a (" + a + ") must be smaller than b (" + b + ").");
         }
-        else {
-            this.a = a;
-        }
+        this.a = a;
     }
 
     public BigDecimal getB() {
@@ -97,9 +95,7 @@
         if (b != null && b.compareTo(a) <= 0) {
             throw new IllegalArgumentException("b (" + b + ") must be greater than a (" + a + ") or null.");
         }
-        else {
-            this.b = b;
-        }
+        this.b = b;
     }
 
     public Range getPeer(River river) {

http://dive4elements.wald.intevation.org