Ignore:
Timestamp:
2013-12-24T21:12:40+01:00 (7 years ago)
Author:
Don-vip
Message:

global use of Utils.joinAsHtmlUnorderedList()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/corrector/ReverseWayNoTagCorrector.java

    r6362 r6524  
    1515import org.openstreetmap.josm.gui.ConditionalOptionPaneUtil;
    1616import org.openstreetmap.josm.gui.DefaultNameFormatter;
     17import org.openstreetmap.josm.tools.Utils;
    1718
    1819/**
    1920 * A ReverseWayNoTagCorrector warns about ways that should not be reversed
    20  * because their semantic meaning cannot be preserved in that case. 
     21 * because their semantic meaning cannot be preserved in that case.
    2122 * E.g. natural=coastline, natural=cliff, barrier=retaining_wall cannot be changed.
    2223 * @see ReverseWayTagCorrector for handling of tags that can be modified (oneway=yes, etc.)
     
    3031   
    3132    /**
    32      * Tags that imply a semantic meaning from the way direction and cannot be changed. 
     33     * Tags that imply a semantic meaning from the way direction and cannot be changed.
    3334     */
    3435    public static final TagCollection directionalTags = new TagCollection(Arrays.asList(new Tag[]{
     
    4647   
    4748    /**
    48      * Replies the tags that imply a semantic meaning from <code>way</code> direction and cannot be changed. 
     49     * Replies the tags that imply a semantic meaning from <code>way</code> direction and cannot be changed.
    4950     * @param way The way to look for
    5051     * @return tags that imply a semantic meaning from <code>way</code> direction and cannot be changed
     
    6869            return tags.iterator().next().toString();
    6970        } else if (tags.size() > 1) {
    70             StringBuilder s = new StringBuilder("<ul>");
    71             for (Tag t : tags) {
    72                 s.append("<li>").append(t).append("</li>");
    73             }
    74             s.append("</ul>");
    75             return s.toString();
     71            return Utils.joinAsHtmlUnorderedList(tags);
    7672        } else {
    7773            return "";
Note: See TracChangeset for help on using the changeset viewer.