diff artifacts/src/main/java/org/dive4elements/river/artifacts/uinfo/salix/LoadSingleEpochSelectState.java @ 9321:a978b601a034

Salix: Fixed ArrrayoutOfBoundsException; minor cleanup
author gernotbelger
date Fri, 27 Jul 2018 10:25:09 +0200
parents 9e6b70cce337
children 6dd539efebb1
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/uinfo/salix/LoadSingleEpochSelectState.java	Fri Jul 27 10:19:38 2018 +0200
+++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/uinfo/salix/LoadSingleEpochSelectState.java	Fri Jul 27 10:25:09 2018 +0200
@@ -14,7 +14,6 @@
 import java.util.Map;
 import java.util.TreeMap;
 
-import org.apache.log4j.Logger;
 import org.dive4elements.artifacts.Artifact;
 import org.dive4elements.artifacts.CallContext;
 import org.dive4elements.artifacts.common.utils.XMLUtils.ElementCreator;
@@ -25,9 +24,8 @@
 import org.w3c.dom.Element;
 
 public class LoadSingleEpochSelectState extends DefaultState {
+
     private static final long serialVersionUID = 1L;
-    /** The log used in this class. */
-    private static Logger log = Logger.getLogger(LoadSingleEpochSelectState.class);
 
     /**
      * The default constructor that initializes an empty State object.
@@ -48,17 +46,17 @@
             if (datakey.equals(name)) {
                 final SalixLineAccess access = new SalixLineAccess((UINFOArtifact) artifact);
                 final List<BedHeight> bhs = BedHeight.getBedHeightEpochs(access.getRiver(), access.getLowerKm(), access.getUpperKm());
-                makeDataSourceYearEpoch(artifact, creator, select, context, bhs);
+                makeDataSourceYearEpoch(creator, select, context, bhs);
             }
         }
         catch (
 
-        final IllegalArgumentException iae) {
+                final IllegalArgumentException iae) {
             iae.printStackTrace();
         }
     }
 
-    public static final void makeDataSourceYearEpoch(final Artifact artifact, final ElementCreator creator, final Element select, final CallContext context,
+    public static final void makeDataSourceYearEpoch(final ElementCreator creator, final Element select, final CallContext context,
             final List<BedHeight> bedheights) { // TODO: maybe move to appropriate helper...
 
         final AddTableDataHelper helper = new AddTableDataHelper(creator, select, "year", context.getMeta());
@@ -86,5 +84,4 @@
 
         helper.submitMapToXml();
     }
-
-}
+}
\ No newline at end of file

http://dive4elements.wald.intevation.org