diff artifacts/src/main/java/org/dive4elements/river/artifacts/bundu/bezugswst/BezugswstState.java @ 9318:7b2b086e45f0

collision pdf details, ResultType refactoring, bezugswst result
author gernotbelger
date Fri, 27 Jul 2018 10:11:23 +0200
parents 6ffcbb4f35d5
children ddcd52d239cd
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/bundu/bezugswst/BezugswstState.java	Thu Jul 26 17:37:23 2018 +0200
+++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/bundu/bezugswst/BezugswstState.java	Fri Jul 27 10:11:23 2018 +0200
@@ -27,21 +27,7 @@
  */
 public class BezugswstState extends DefaultState implements FacetTypes {
 
-    /*
-     * TODO: THIS CLASS IS A CLONE OF FixRealizingCompute
-     * +
-     * ++
-     * +++
-     * ++++
-     * +++++
-     * ++++++
-     * +++++++
-     * ++++++++
-     * +++++++++
-     * ++++++++++
-     * +++++++++++
-     * IT does not work here
-     */
+    private static final long serialVersionUID = 1L;
 
     /** The log used in this class. */
     private static Logger log = Logger.getLogger(BezugswstState.class);
@@ -59,7 +45,7 @@
     @Override
     public Object computeAdvance(final D4EArtifact artifact, final String hash, final CallContext context, final List<Facet> facets, final Object old) {
         log.debug("BezugswstState.computeAdvance");
-
+        // TODO: remove this old stuff, or replace it by new
         // final CalculationResult res;
         //
         // final FixRealizingAccess access = new FixRealizingAccess(artifact);
@@ -165,13 +151,11 @@
         if (facets == null)
             return res;
 
-        // if (!((List<Facet>) res).isEmpty()) {
         final Facet csv = new DataFacet(FacetTypes.CSV, "CSV data", ComputeType.ADVANCE, hash, this.id);
         final Facet pdf = new DataFacet(FacetTypes.PDF, "PDF data", ComputeType.ADVANCE, hash, this.id);
 
         facets.add(csv);
         facets.add(pdf);
-        // }
 
         return res;
     }

http://dive4elements.wald.intevation.org