Changeset 19064 in josm


Ignore:
Timestamp:
2024-04-27T10:24:46+02:00 (2 weeks ago)
Author:
GerdP
Message:

see #21881 Add a check for loops in directional waterways

  • fix @since xxx
  • adapt unit test
Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/algorithms/Tarjan.java

    r19062 r19064  
    11// License: GPL. For details, see LICENSE file.
    22package org.openstreetmap.josm.data.algorithms;
    3 
    4 import org.openstreetmap.josm.data.osm.Node;
    5 import org.openstreetmap.josm.data.osm.NodeGraph;
    6 import org.openstreetmap.josm.tools.Pair;
    7 import org.openstreetmap.josm.tools.Utils;
    83
    94import java.util.ArrayDeque;
     
    1611import java.util.Map;
    1712
     13import org.openstreetmap.josm.data.osm.Node;
     14import org.openstreetmap.josm.data.osm.NodeGraph;
     15import org.openstreetmap.josm.tools.Pair;
     16import org.openstreetmap.josm.tools.Utils;
     17
    1818/**
    1919 * Tarjan's strongly connected components algorithm for JOSM.
     
    2222 * @see <a href="https://en.wikipedia.org/wiki/Tarjan%27s_strongly_connected_components_algorithm">
    2323 * Tarjan's strongly connected components algorithm</a>
    24  * @since xxx
     24 * @since 19062
    2525 */
    2626public final class Tarjan {
  • trunk/src/org/openstreetmap/josm/data/osm/NodeGraph.java

    r19062 r19064  
    168168     *
    169169     * @return A map representing the graph structure, where nodes are keys, and values are their direct successors.
    170      * @since xxx
     170     * @since 19062
    171171     */
    172172    public Map<Node, List<Node>> createMap() {
  • trunk/src/org/openstreetmap/josm/data/validation/tests/CycleDetector.java

    r19062 r19064  
    3737 *
    3838 * @author gaben
    39  * @since xxx
     39 * @since 19062
    4040 */
    4141public class CycleDetector extends Test {
  • trunk/test/unit/org/openstreetmap/josm/data/osm/WaySegmentTest.java

    r18853 r19064  
    3737        assertEquals(WaySegment.forNodePair(w, n4, n1).getLowerIndex(), 5);
    3838        IllegalArgumentException iae = assertThrows(IllegalArgumentException.class, () -> WaySegment.forNodePair(w, n3, n4));
    39         assertEquals("Node pair is not part of way!", iae.getMessage());
     39        assertEquals("The node pair is not consecutive part of the way!", iae.getMessage());
    4040    }
    4141}
Note: See TracChangeset for help on using the changeset viewer.