[PATCH] SedimentYieldArtifact: Removed unneeded documentation, removed but added one TODO

Wald Commits scm-commit at wald.intevation.org
Mon Sep 30 06:54:05 CEST 2013


# HG changeset patch
# User Felix Wolfsteller <felix.wolfsteller at intevation.de>
# Date 1380517089 -7200
# Node ID e6f9c831a75fbf5071be6fa1a1c66780446409c5
# Parent  c0349b54c604128ff836bbbe2b3bac09a14ac865
SedimentYieldArtifact: Removed unneeded documentation, removed but added one TODO.

diff -r c0349b54c604 -r e6f9c831a75f artifacts/src/main/java/org/dive4elements/river/artifacts/SedimentYieldArtifact.java
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/SedimentYieldArtifact.java	Fri Sep 27 22:09:12 2013 +0200
+++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/SedimentYieldArtifact.java	Mon Sep 30 06:58:09 2013 +0200
@@ -36,7 +36,7 @@
 import org.dive4elements.river.utils.Formatter;
 
 
-/** Artifact to access sediment yield measurements (inspired from flow velocity artifact). */
+/** Artifact to access sediment yield measurements. */
 public class SedimentYieldArtifact
 extends      StaticD4EArtifact
 implements   FacetTypes
@@ -84,6 +84,7 @@
         String id = getDataAsString(DATA_NAME);
         String river = getDataAsString("river");
 
+        // TODO use cache if possible
         SedimentLoad myLoad = SedimentLoadFactory.getSedimentLoadWithDataUncached(id, river);
         return new CalculationResult(
             new SedimentLoadResult[] {
@@ -142,8 +143,6 @@
         List<Facet> fs = new ArrayList<Facet>();
         String code = getDatacageIDValue(data);
 
-        // TODO need river, too.
-        //
         if (code != null) {
             String name = SedimentLoadFactory.getSedimentYieldDescription(Integer.valueOf(code));
 


More information about the Dive4elements-commits mailing list