changeset 6267:484a19628b1e

Added TODO about braindead code.
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Tue, 11 Jun 2013 12:00:57 +0200
parents c297a61115d0
children bbd44de9ec78
files artifacts/src/main/java/org/dive4elements/river/artifacts/model/FastCrossSectionChunk.java
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/model/FastCrossSectionChunk.java	Tue Jun 11 11:59:25 2013 +0200
+++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/model/FastCrossSectionChunk.java	Tue Jun 11 12:00:57 2013 +0200
@@ -56,6 +56,8 @@
     /** Finds the FastCrossSectionLine at km (null if not found). */
     public FastCrossSectionLine getCrossSectionLine(double km) {
         FastCrossSectionLine key = new FastCrossSectionLine(km);
+        // TODO follwing is braindead. Create the list in sorted fashion
+        // instead and remove sorting here.
         Collections.sort(crossSectionLines, FastCrossSectionLine.KM_CMP);
         int pos = Collections.binarySearch(
             crossSectionLines, key, FastCrossSectionLine.KM_CMP);

http://dive4elements.wald.intevation.org