Changeset 35147 in osm for applications


Ignore:
Timestamp:
2019-09-27T14:57:22+02:00 (5 years ago)
Author:
donvip
Message:

code cleanup, javadoc

Location:
applications/editors/josm/plugins/tag2link/src/org/openstreetmap/josm/plugins/tag2link
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/tag2link/src/org/openstreetmap/josm/plugins/tag2link/Tag2LinkRuleChecker.java

    r35134 r35147  
    2020import java.util.ArrayList;
    2121import java.util.Collection;
    22 import java.util.Iterator;
    2322import java.util.Locale;
    2423import java.util.Map;
     24import java.util.Map.Entry;
    2525import java.util.function.BiFunction;
    2626import java.util.regex.Matcher;
     
    134134        return result;
    135135    }
    136    
     136
    137137    private static void replaceMapParams(Map<String, String> map, EvalResult eval) {
    138         for (Iterator<String> it = map.keySet().iterator(); it.hasNext(); ) {
    139             String key = it.next();
    140             String value = map.get(key);
     138        for (Entry<String, String> e : map.entrySet()) {
     139            String key = e.getKey();
     140            String value = e.getValue();
    141141            String key2 = replaceParams(key, eval);
    142142            String value2 = replaceParams(value, eval);
     
    153153        }
    154154    }
    155    
     155
    156156    private static Collection<Link> processEval(EvalResult eval, Rule rule, Source source) {
    157157        Collection<Link> result = new ArrayList<>();
  • applications/editors/josm/plugins/tag2link/src/org/openstreetmap/josm/plugins/tag2link/data/Link.java

    r35134 r35147  
    1616package org.openstreetmap.josm.plugins.tag2link.data;
    1717
     18/**
     19 * A link that should be opened using a GET HTTP request.
     20 */
    1821public class Link implements Cloneable {
    1922    public String name;
  • applications/editors/josm/plugins/tag2link/src/org/openstreetmap/josm/plugins/tag2link/data/LinkPost.java

    r35134 r35147  
    1919import java.util.Map;
    2020
     21/**
     22 * A link that should be opened using a POST HTTP request.
     23 */
    2124public class LinkPost extends Link {
    2225
Note: See TracChangeset for help on using the changeset viewer.