Ignore:
Timestamp:
2012-03-29T23:22:07+02:00 (14 years ago)
Author:
simon04
Message:

fix #7513 - Warn non-experts when combining ways with conflicting tags or ways being part of relations

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/tools/Utils.java

    r4816 r5132  
    2323import java.util.Iterator;
    2424import java.util.List;
     25import org.openstreetmap.josm.data.osm.OsmPrimitive;
    2526
    2627/**
     
    166167    }
    167168
     169    public static String joinAsHtmlUnorderedList(Collection<?> values) {
     170        StringBuilder sb = new StringBuilder(1024);
     171        sb.append("<ul>");
     172        for (Object i : values) {
     173            sb.append("<li>").append(i).append("</li>");
     174        }
     175        sb.append("</ul>");
     176        return sb.toString();
     177    }
     178
    168179    /**
    169180     * convert Color to String
     
    423434     * @return the transformed unmodifiable collection
    424435     */
    425     public static <A, B> Collection<B> transform(final Collection<A> c, final Function<A, B> f) {
     436    public static <A, B> Collection<B> transform(final Collection<? extends A> c, final Function<A, B> f) {
    426437        return new Collection<B>() {
    427438
     
    460471                return new Iterator<B>() {
    461472
    462                     private Iterator<A> it = c.iterator();
     473                    private Iterator<? extends A> it = c.iterator();
    463474
    464475                    @Override
Note: See TracChangeset for help on using the changeset viewer.