Changeset 16955 in josm for trunk/src/org
- Timestamp:
- 2020-08-29T07:53:14+02:00 (4 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/io/GeoJSONReader.java
r16954 r16955 43 43 import org.openstreetmap.josm.gui.progress.ProgressMonitor; 44 44 import org.openstreetmap.josm.tools.Logging; 45 import org.openstreetmap.josm.tools.Utils; 45 46 46 47 /** … … 391 392 try { 392 393 while ((line = reader.readLine()) != null) { 393 line = line.replaceFirst(rs, "");394 line = Utils.strip(line, rs); 394 395 try (InputStream is = new ByteArrayInputStream(line.getBytes(StandardCharsets.UTF_8))) { 395 396 parse(is); -
trunk/src/org/openstreetmap/josm/tools/Utils.java
r16643 r16955 744 744 */ 745 745 public static String strip(final String str) { 746 if (str == null || str.isEmpty()) {747 return str;748 }749 746 return strip(str, DEFAULT_STRIP); 750 747 }
Note:
See TracChangeset
for help on using the changeset viewer.