Changeset 35147 in osm for applications
- Timestamp:
- 2019-09-27T14:57:22+02:00 (5 years ago)
- 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 20 20 import java.util.ArrayList; 21 21 import java.util.Collection; 22 import java.util.Iterator;23 22 import java.util.Locale; 24 23 import java.util.Map; 24 import java.util.Map.Entry; 25 25 import java.util.function.BiFunction; 26 26 import java.util.regex.Matcher; … … 134 134 return result; 135 135 } 136 136 137 137 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(); 141 141 String key2 = replaceParams(key, eval); 142 142 String value2 = replaceParams(value, eval); … … 153 153 } 154 154 } 155 155 156 156 private static Collection<Link> processEval(EvalResult eval, Rule rule, Source source) { 157 157 Collection<Link> result = new ArrayList<>(); -
applications/editors/josm/plugins/tag2link/src/org/openstreetmap/josm/plugins/tag2link/data/Link.java
r35134 r35147 16 16 package org.openstreetmap.josm.plugins.tag2link.data; 17 17 18 /** 19 * A link that should be opened using a GET HTTP request. 20 */ 18 21 public class Link implements Cloneable { 19 22 public String name; -
applications/editors/josm/plugins/tag2link/src/org/openstreetmap/josm/plugins/tag2link/data/LinkPost.java
r35134 r35147 19 19 import java.util.Map; 20 20 21 /** 22 * A link that should be opened using a POST HTTP request. 23 */ 21 24 public class LinkPost extends Link { 22 25
Note:
See TracChangeset
for help on using the changeset viewer.