Changeset 12287 in josm for trunk/src/org/openstreetmap/josm


Ignore:
Timestamp:
2017-06-01T00:02:26+02:00 (7 years ago)
Author:
Don-vip
Message:

see #11166 - make SimplifyWayAction.simplifyWay static + fix javadoc

Location:
trunk/src/org/openstreetmap/josm/actions
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/SimplifyWayAction.java

    r12171 r12287  
    137137     * in order to simplify the way.
    138138     */
    139     protected boolean isRequiredNode(Way way, Node node) {
     139    protected static boolean isRequiredNode(Way way, Node node) {
    140140        int frequency = Collections.frequency(way.getNodes(), node);
    141141        if ((way.getNode(0) == node) && (way.getNode(way.getNodesCount()-1) == node)) {
     
    174174     * @since 6411
    175175     */
    176     public SequenceCommand simplifyWay(Way w, double threshold) {
     176    public static SequenceCommand simplifyWay(Way w, double threshold) {
    177177        int lower = 0;
    178178        int i = 0;
     
    234234     * @param simplifiedNodes list that will contain resulting nodes
    235235     */
    236     protected void buildSimplifiedNodeList(List<Node> wnew, int from, int to, double threshold, List<Node> simplifiedNodes) {
     236    protected static void buildSimplifiedNodeList(List<Node> wnew, int from, int to, double threshold, List<Node> simplifiedNodes) {
    237237
    238238        Node fromN = wnew.get(from);
  • trunk/src/org/openstreetmap/josm/actions/SplitWayAction.java

    r12279 r12287  
    491491     * i.e. {@code Main.main.undoredo.add(result.getCommand())}.
    492492     *
    493      * @param layer the layer which the way belongs to. Must not be null.
     493     * @param layer the layer which the way belongs to.
    494494     * @param way the way to split. Must not be null.
    495495     * @param wayChunks the list of way chunks into the way is split. Must not be null.
     
    512512     * i.e. {@code Main.main.undoredo.add(result.getCommand())}.
    513513     *
    514      * @param layer the layer which the way belongs to. Must not be null.
     514     * @param layer the layer which the way belongs to.
    515515     * @param way the way to split. Must not be null.
    516516     * @param wayChunks the list of way chunks into the way is split. Must not be null.
     
    733733     * Replies null if the way couldn't be split at the given nodes.
    734734     *
    735      * @param layer the layer which the way belongs to. Must not be null.
     735     * @param layer the layer which the way belongs to.
    736736     * @param way the way to split. Must not be null.
    737737     * @param atNodes the list of nodes where the way is split. Must not be null.
Note: See TracChangeset for help on using the changeset viewer.