Changeset 2926 in josm
- Timestamp:
- 2010-02-02T23:42:49+01:00 (15 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/.classpath
r2778 r2926 4 4 <classpathentry kind="src" path="test/unit"/> 5 5 <classpathentry kind="src" path="test/functional"/> 6 <classpathentry excluding="build/|dist/|src/|test/|test/build/|test/functional/|test/unit/" including=" data/|images/|presets/|styles/" kind="src" path=""/>6 <classpathentry excluding="build/|dist/|src/|test/|test/build/|test/functional/|test/unit/" including="CONTRIBUTION|LICENSE|README|data/|images/|presets/|styles/" kind="src" path=""/> 7 7 <classpathentry kind="lib" path="lib/metadata-extractor-2.3.1-nosun.jar"/> 8 8 <classpathentry kind="con" path="org.eclipse.jdt.junit.JUNIT_CONTAINER/4"/> -
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.