Changeset 14201 in josm for trunk/scripts
- Timestamp:
- 2018-08-29T19:40:53+02:00 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/scripts/BuildProjectionDefinitions.java
r13708 r14201 8 8 import java.nio.charset.StandardCharsets; 9 9 import java.util.Arrays; 10 import java.util.Collections; 10 11 import java.util.LinkedHashMap; 11 12 import java.util.List; … … 74 75 75 76 static List<String> initList(String baseDir, String ext) { 76 return Arrays.asList(new File(baseDir + File.separator + PROJ_DIR) 77 .list((dir, name) -> !name.contains(".") || name.toLowerCase(Locale.ENGLISH).endsWith(ext))); 77 String[] result = new File(baseDir + File.separator + PROJ_DIR) 78 .list((dir, name) -> !name.contains(".") || name.toLowerCase(Locale.ENGLISH).endsWith(ext)); 79 return result != null ? Arrays.asList(result) : Collections.emptyList(); 78 80 } 79 81
Note:
See TracChangeset
for help on using the changeset viewer.