src/main/java/de/blau/android/osm/StorageDelegator.java
/**
     * Replace the given node in any ways it is member of.
     * 
     * @param node The node to be replaced.
     * @return null if node was not member of a way, the replacement node if it was
     */
Replace the given node in any ways it is member of.

@param node The node to be replaced.
@return null if node was not member of a way, the replacement node if it was
Replace the given node in any ways it is member of . @param node The node to be replaced . @return null if node was not member of a way the replacement node if it was
@Nullable
    public Node replaceNode(@NonNull final Node node) {
        List<Way> ways = currentStorage.getWays(node);
        if (!ways.isEmpty()) {
            Node newNode = factory.createNodeWithNewId(node.lat, node.lon);
            insertElementUnsafe(newNode);
            dirty = true;
            for (Way way : ways) {
                replaceNodeInWay(node, newNode, way);
            }
            return newNode;
        }
        return null;
    }
@ Nullable public Node replaceNode ( @ NonNull final Node node ) { List < Way > ways = currentStorage . getWays ( node ) ; if ( ! ways . isEmpty ( ) ) { Node newNode = factory . createNodeWithNewId ( node . lat , node . lon ) ; insertElementUnsafe ( newNode ) ; dirty = true ; for ( Way way : ways ) { replaceNodeInWay ( node , newNode , way ) ; } return newNode ; } return null ; }
Replace the given node in any ways it is member of.
Replace the given node in any ways it is member of .