Ignore:
Timestamp:
2016-10-08T02:01:09+02:00 (9 years ago)
Author:
Don-vip
Message:

sonar - squid:S3725 - Java 8's Files.exists should not be used (The Files.exists method has noticeably poor performance in JDK 8, and can slow an application significantly when used to check files that don't actually exist)

File:
1 edited

Legend:

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

    r10952 r11096  
    183183        if (ValidatorPreference.PREF_USE_IGNORE.get()) {
    184184            Path path = Paths.get(getValidatorDir()).resolve("ignorederrors");
    185             if (Files.exists(path)) {
     185            if (path.toFile().exists()) {
    186186                try {
    187187                    ignoredErrors.addAll(Files.readAllLines(path, StandardCharsets.UTF_8));
Note: See TracChangeset for help on using the changeset viewer.