Changeset 30742 in osm for applications/editors/josm/plugins/trustosm/src/tools
- Timestamp:
- 2014-10-19T02:45:29+02:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/trustosm/src/tools/NameGenerator.java
r30738 r30742 86 86 public void refresh() throws IOException{ 87 87 try ( 88 FileReader input = new FileReader(fileName);89 BufferedReader bufRead = new BufferedReader(input);88 FileReader input = new FileReader(fileName); 89 BufferedReader bufRead = new BufferedReader(input); 90 90 ) { 91 String line="";92 93 while (line != null) {94 line = bufRead.readLine();95 if (line != null && !line.equals("")) {96 if (line.charAt(0) == '-') {97 pre.add(line.substring(1).toLowerCase());98 } else if (line.charAt(0) == '+') {99 sur.add(line.substring(1).toLowerCase());100 } else{101 mid.add(line.toLowerCase());102 }103 }104 }91 String line=""; 92 93 while (line != null) { 94 line = bufRead.readLine(); 95 if (line != null && !line.equals("")) { 96 if (line.charAt(0) == '-') { 97 pre.add(line.substring(1).toLowerCase()); 98 } else if (line.charAt(0) == '+') { 99 sur.add(line.substring(1).toLowerCase()); 100 } else{ 101 mid.add(line.toLowerCase()); 102 } 103 } 104 } 105 105 } 106 106 }
Note:
See TracChangeset
for help on using the changeset viewer.
