Changeset 10406 in josm for trunk/src/org


Ignore:
Timestamp:
2016-06-16T19:17:27+02:00 (8 years ago)
Author:
Don-vip
Message:

sonar - squid:S899 - Return values should not be ignored when they contain the operation status code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/cache/JCSCacheManager.java

    r10378 r10406  
    3030import org.openstreetmap.josm.data.preferences.BooleanProperty;
    3131import org.openstreetmap.josm.data.preferences.IntegerProperty;
     32import org.openstreetmap.josm.tools.Utils;
    3233
    3334/**
     
    227228
    228229    private static void deleteCacheFiles(String basePathPart) {
    229         new File(basePathPart + ".key").delete();
    230         new File(basePathPart + ".data").delete();
     230        Utils.deleteFile(new File(basePathPart + ".key"));
     231        Utils.deleteFile(new File(basePathPart + ".data"));
    231232    }
    232233
Note: See TracChangeset for help on using the changeset viewer.