Changeset 6781 in josm
- Timestamp:
- 2014-01-29T23:59:25+01:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/validation/OsmValidator.java
r6779 r6781 167 167 ignoredErrors.clear(); 168 168 if (Main.pref.getBoolean(ValidatorPreference.PREF_USE_IGNORE, true)) { 169 BufferedReader in = null; 170 try { 171 in = new BufferedReader(new FileReader(getValidatorDir() + "ignorederrors")); 172 for (String line = in.readLine(); line != null; line = in.readLine()) { 173 ignoredErrors.add(line); 169 File file = new File(getValidatorDir() + "ignorederrors"); 170 if (file.exists()) { 171 BufferedReader in = null; 172 try { 173 in = new BufferedReader(new FileReader(file)); 174 for (String line = in.readLine(); line != null; line = in.readLine()) { 175 ignoredErrors.add(line); 176 } 177 } catch (final FileNotFoundException e) { 178 Main.debug(Main.getErrorMessage(e)); 179 } catch (final IOException e) { 180 Main.error(e); 181 } finally { 182 Utils.close(in); 174 183 } 175 } catch (final FileNotFoundException e) {176 Main.debug(Main.getErrorMessage(e));177 } catch (final IOException e) {178 Main.error(e);179 } finally {180 Utils.close(in);181 184 } 182 185 }
Note:
See TracChangeset
for help on using the changeset viewer.