Changeset 19106 in josm for trunk/scripts
- Timestamp:
- 2024-06-13T21:18:45+02:00 (9 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/scripts/SyncEditorLayerIndex.java
r18989 r19106 108 108 private static String optionEncoding; 109 109 private static boolean optionNoEli; 110 private Map<String, String> skip = new HashMap<>(); 111 private Map<String, String> skipStart = new HashMap<>(); 110 private final Map<String, String> skip = new HashMap<>(); 111 private final Map<String, String> skipStart = new HashMap<>(); 112 112 113 113 /** … … 238 238 239 239 void loadSkip() throws IOException { 240 final Pattern pattern = Pattern.compile("^\\|\\| *(ELI|Ignore) *\\|\\| *\\{\\{\\{(.+) \\}\\}\\} *\\|\\|");240 final Pattern pattern = Pattern.compile("^\\|\\| *(ELI|Ignore) *\\|\\| *\\{\\{\\{(.+)}}} *\\|\\|"); 241 241 try (BufferedReader fr = Files.newBufferedReader(Paths.get(ignoreInputFile), UTF_8)) { 242 242 String line; … … 479 479 shapes += sep + "</shape>\n"; 480 480 } 481 } catch (IllegalArgumentException i gnored) {482 Logging.trace(i gnored);481 } catch (IllegalArgumentException illegalArgumentException) { 482 Logging.trace(illegalArgumentException); 483 483 } 484 484 if (!shapes.isEmpty()) { … … 776 776 if (m.matches()) { 777 777 Calendar cal = Calendar.getInstance(); 778 cal.set(Integer. valueOf(m.group(2)),779 m.group(4) == null ? 0 : Integer. valueOf(m.group(4))-1,780 m.group(6) == null ? 1 : Integer. valueOf(m.group(6)));778 cal.set(Integer.parseInt(m.group(2)), 779 m.group(4) == null ? 0 : Integer.parseInt(m.group(4))-1, 780 m.group(6) == null ? 1 : Integer.parseInt(m.group(6))); 781 781 cal.add(Calendar.DAY_OF_MONTH, -1); 782 782 ed2 = m.group(1) + cal.get(Calendar.YEAR); … … 1230 1230 } else { 1231 1231 try { 1232 URL jurl = new URL(u.replaceAll("\\{switch:[^ \\}]*\\}", "x"));1232 URL jurl = new URL(u.replaceAll("\\{switch:[^}]*}", "x")); 1233 1233 String domain = jurl.getHost(); 1234 1234 int port = jurl.getPort(); … … 1375 1375 List<String> r = new ArrayList<>(); 1376 1376 List<String> u = getProjectionsUnstripped(e); 1377 if (u != null) { 1378 for (String p : u) { 1379 if (!oldproj.containsKey(p) && !("CRS:84".equals(p) && !(getUrlStripped(e).matches("(?i)version=1\\.3")))) { 1380 r.add(p); 1381 } 1377 for (String p : u) { 1378 if (!oldproj.containsKey(p) && !("CRS:84".equals(p) && !(getUrlStripped(e).matches("(?i)version=1\\.3")))) { 1379 r.add(p); 1382 1380 } 1383 1381 }
Note:
See TracChangeset
for help on using the changeset viewer.