[PATCH] Fixed imports and make it build again

Wald Commits scm-commit at wald.intevation.org
Wed Apr 30 17:23:32 CEST 2014


# HG changeset patch
# User Sascha L. Teichmann <teichmann at intevation.de>
# Date 1398871408 -7200
# Node ID 92a2b9b691e1f7ee1d01b149040e171730071368
# Parent  8c6ed23ce3150550bc3376ed7cbc9e3b55120172
Fixed imports and make it build again.

diff -r 8c6ed23ce315 -r 92a2b9b691e1 artifacts/src/main/java/org/dive4elements/river/artifacts/RiverAxisArtifact.java
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/RiverAxisArtifact.java	Wed Apr 30 17:16:57 2014 +0200
+++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/RiverAxisArtifact.java	Wed Apr 30 17:23:28 2014 +0200
@@ -14,8 +14,6 @@
 import org.dive4elements.artifactdatabase.state.DefaultOutput;
 import org.dive4elements.artifactdatabase.state.Facet;
 import org.dive4elements.artifactdatabase.state.State;
-import org.dive4elements.artifacts.ArtifactFactory;
-import org.dive4elements.artifacts.CallMeta;
 import org.dive4elements.river.artifacts.model.FacetTypes;
 import org.dive4elements.river.artifacts.model.RiverFactory;
 import org.dive4elements.river.model.River;
@@ -26,7 +24,6 @@
 import java.util.List;
 
 import org.apache.log4j.Logger;
-import org.w3c.dom.Document;
 
 @Deprecated
 public class RiverAxisArtifact extends WMSDBArtifact {
diff -r 8c6ed23ce315 -r 92a2b9b691e1 artifacts/src/main/java/org/dive4elements/river/artifacts/WMSBuildingsArtifact.java
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/WMSBuildingsArtifact.java	Wed Apr 30 17:16:57 2014 +0200
+++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/WMSBuildingsArtifact.java	Wed Apr 30 17:23:28 2014 +0200
@@ -10,15 +10,10 @@
 
 import java.util.List;
 
-import org.w3c.dom.Document;
-
 import org.apache.log4j.Logger;
 
 import com.vividsolutions.jts.geom.Envelope;
 
-import org.dive4elements.artifacts.ArtifactFactory;
-import org.dive4elements.artifacts.CallMeta;
-
 import org.dive4elements.artifactdatabase.state.DefaultOutput;
 import org.dive4elements.artifactdatabase.state.Facet;
 import org.dive4elements.artifactdatabase.state.State;
@@ -37,10 +32,6 @@
     public static final String NAME = "buildings";
 
 
-    private static final Logger logger =
-        Logger.getLogger(WMSBuildingsArtifact.class);
-
-
     @Override
     public String getName() {
         return NAME;
diff -r 8c6ed23ce315 -r 92a2b9b691e1 artifacts/src/main/java/org/dive4elements/river/artifacts/model/DifferenceCurveFilterFacet.java
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/model/DifferenceCurveFilterFacet.java	Wed Apr 30 17:16:57 2014 +0200
+++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/model/DifferenceCurveFilterFacet.java	Wed Apr 30 17:23:28 2014 +0200
@@ -1,11 +1,9 @@
 package org.dive4elements.river.artifacts.model;
 
-import org.apache.log4j.Logger;
 import org.dive4elements.artifactdatabase.state.Facet;
 import org.dive4elements.artifacts.Artifact;
 import org.dive4elements.artifacts.CallContext;
 import org.dive4elements.river.artifacts.D4EArtifact;
-import org.dive4elements.river.artifacts.WINFOArtifact;
 import org.dive4elements.river.artifacts.access.RiverAccess;
 import org.dive4elements.river.artifacts.context.RiverContext;
 import org.dive4elements.river.artifacts.math.MovingAverage;
@@ -15,9 +13,6 @@
 public class DifferenceCurveFilterFacet
 extends DifferenceCurveFacet
 {
-    private static Logger logger = Logger.getLogger(DifferenceCurveFacet.class);
-
-
     public DifferenceCurveFilterFacet() {
     }
 
diff -r 8c6ed23ce315 -r 92a2b9b691e1 artifacts/src/main/java/org/dive4elements/river/artifacts/model/StaticPorosityCacheKey.java
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/model/StaticPorosityCacheKey.java	Wed Apr 30 17:16:57 2014 +0200
+++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/model/StaticPorosityCacheKey.java	Wed Apr 30 17:23:28 2014 +0200
@@ -8,22 +8,25 @@
 
 package org.dive4elements.river.artifacts.model;
 
+import java.io.Serializable;
+
 
 public class StaticPorosityCacheKey
+implements   Serializable
 {
    public static final String CACHE_NAME = "porosity-table-static";
 
-    private int porosity_id;
+    private int porosityId;
 
     public StaticPorosityCacheKey(
-        int porosity_id
+        int porosityId
     ) {
-        this.porosity_id = porosity_id;
+        this.porosityId = porosityId;
     }
 
     @Override
     public int hashCode() {
-        return (String.valueOf(porosity_id)).hashCode();
+        return (String.valueOf(porosityId)).hashCode();
     }
 
     @Override
@@ -32,6 +35,6 @@
             return false;
         }
         StaticPorosityCacheKey o = (StaticPorosityCacheKey) other;
-        return this.porosity_id == o.porosity_id;
+        return this.porosityId == o.porosityId;
     }
 }
diff -r 8c6ed23ce315 -r 92a2b9b691e1 artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/PorosityFactory.java
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/PorosityFactory.java	Wed Apr 30 17:16:57 2014 +0200
+++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/PorosityFactory.java	Wed Apr 30 17:23:28 2014 +0200
@@ -19,7 +19,6 @@
 import org.hibernate.type.StandardBasicTypes;
 
 import org.dive4elements.river.artifacts.cache.CacheFactory;
-import org.dive4elements.river.artifacts.model.StaticMorphoWidthCacheKey;
 import org.dive4elements.river.artifacts.model.StaticPorosityCacheKey;
 import org.dive4elements.river.backend.SessionHolder;
 


More information about the Dive4Elements-commits mailing list