# HG changeset patch # User Felix Wolfsteller # Date 1370944857 -7200 # Node ID 484a19628b1e49d10877798aba4eae06db555970 # Parent c297a61115d073b432d687b3d5b882789d0630f1 Added TODO about braindead code. diff -r c297a61115d0 -r 484a19628b1e artifacts/src/main/java/org/dive4elements/river/artifacts/model/FastCrossSectionChunk.java --- 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);