- Timestamp:
- 2010-02-02T23:42:49+01:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/Version.java
r2845 r2926 34 34 */ 35 35 static public String loadResourceFile(URL resource) { 36 if (resource == null) return null; 36 37 BufferedReader in; 37 38 String s = null; … … 74 75 Pattern p = Pattern.compile("^([^:]+):(.*)$"); 75 76 for (String line: content.split("\n")) { 76 if (line == null || line.trim().equals("")) continue; 77 if (line.matches("^\\s*#.*$")) continue; 77 if (line == null || line.trim().equals("")) { 78 continue; 79 } 80 if (line.matches("^\\s*#.*$")) { 81 continue; 82 } 78 83 Matcher m = p.matcher(line); 79 84 if (m.matches()) {
Note:
See TracChangeset
for help on using the changeset viewer.