Changeset 16643 in josm for trunk/src/org/openstreetmap/josm/gui/io
- Timestamp:
- 2020-06-14T20:19:59+02:00 (4 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/gui/io
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/io/ChangesetCommentModel.java
r13994 r16643 46 46 */ 47 47 public List<String> findHashTags() { 48 return Arrays.stream(comment.split("\\s" ))48 return Arrays.stream(comment.split("\\s", -1)) 49 49 .map(s -> Utils.strip(s, ",;")) 50 50 .filter(s -> s.matches("#[a-zA-Z][a-zA-Z_\\-0-9]+")) -
trunk/src/org/openstreetmap/josm/gui/io/CustomConfigurator.java
r16438 r16643 170 170 if (!opts.isEmpty()) { 171 171 return JOptionPane.showOptionDialog(MainApplication.getMainFrame(), text, "Question", 172 JOptionPane.YES_NO_CANCEL_OPTION, JOptionPane.QUESTION_MESSAGE, null, opts.split(";" ), 0);172 JOptionPane.YES_NO_CANCEL_OPTION, JOptionPane.QUESTION_MESSAGE, null, opts.split(";", -1), 0); 173 173 } else { 174 174 return JOptionPane.showOptionDialog(MainApplication.getMainFrame(), text, "Question", … … 298 298 final List<String> removeList = new ArrayList<>(); 299 299 final List<String> deleteList = new ArrayList<>(); 300 Collections.addAll(installList, install.toLowerCase(Locale.ENGLISH).split(";" ));301 Collections.addAll(removeList, uninstall.toLowerCase(Locale.ENGLISH).split(";" ));302 Collections.addAll(deleteList, delete.toLowerCase(Locale.ENGLISH).split(";" ));300 Collections.addAll(installList, install.toLowerCase(Locale.ENGLISH).split(";", -1)); 301 Collections.addAll(removeList, uninstall.toLowerCase(Locale.ENGLISH).split(";", -1)); 302 Collections.addAll(deleteList, delete.toLowerCase(Locale.ENGLISH).split(";", -1)); 303 303 installList.remove(""); 304 304 removeList.remove("");
Note:
See TracChangeset
for help on using the changeset viewer.