Changeset 15485 in josm for trunk/src/org/openstreetmap


Ignore:
Timestamp:
2019-10-29T23:14:31+01:00 (5 years ago)
Author:
Don-vip
Message:

fix #18272 - Stop creating validator folder (patch by bagage)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/validation/OsmValidator.java

    r15460 r15485  
    176176     */
    177177    public static void initialize() {
    178         checkValidatorDir();
    179178        initializeGridDetail();
    180179        loadIgnoredErrors();
     
    193192            Logging.log(Logging.LEVEL_ERROR, null, e);
    194193            return dir.getPath();
    195         }
    196     }
    197 
    198     /**
    199      * Check if validator directory exists (store ignored errors file)
    200      */
    201     private static void checkValidatorDir() {
    202         File pathDir = new File(getValidatorDir());
    203         try {
    204             if (!pathDir.exists()) {
    205                 Utils.mkDirs(pathDir);
    206             }
    207         } catch (SecurityException e) {
    208             Logging.log(Logging.LEVEL_ERROR, "Unable to check validator directory", e);
    209194        }
    210195    }
Note: See TracChangeset for help on using the changeset viewer.