Changeset 19351 in josm for trunk/test
- Timestamp:
- 2025-03-21T17:29:04+01:00 (4 days ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/data/validation/routines/DomainValidatorTestIT.java
r19223 r19351 110 110 Map<String, String> missingTLD = new TreeMap<>(); // stores entry and comments as String[] 111 111 Map<String, String> missingCC = new TreeMap<>(); 112 Map<String, String> allTLD = new TreeMap<>(); // stores entry and comments as String[] 113 Map<String, String> allCC = new TreeMap<>(); // stores entry and comments as String[] 112 114 while ((line = br.readLine()) != null) { 113 115 if (!line.startsWith("#")) { … … 121 123 if (!dv.isValidTld(asciiTld)) { 122 124 String[] info = htmlInfo.get(asciiTld); 125 String type = info[0]; 126 String comment = info[1]; 127 if ("country-code".equals(type)) { // Which list to use? 128 allCC.put(asciiTld, unicodeTld + " " + comment); 129 if (generateUnicodeTlds) { 130 allCC.put(unicodeTld, asciiTld + " " + comment); 131 } 132 } else { 133 allTLD.put(asciiTld, unicodeTld + " " + comment); 134 if (generateUnicodeTlds) { 135 allTLD.put(unicodeTld, asciiTld + " " + comment); 136 } 137 } 123 138 if (info != null) { 124 String type = info[0];125 String comment = info[1];126 139 if ("country-code".equals(type)) { // Which list to use? 127 140 missingCC.put(asciiTld, unicodeTld + " " + comment); … … 158 171 } 159 172 } 173 printMap(header, allTLD, "allTLD"); 174 printMap(header, allCC, "allCC"); 160 175 if (!missingTLD.isEmpty()) { 161 176 printMap(header, missingTLD, "TLD");
Note:
See TracChangeset
for help on using the changeset viewer.