Ignore:
Timestamp:
2016-01-04T01:06:23+01:00 (4 years ago)
Author:
Don-vip
Message:

fix #12249 - Fix Findbugs warnings "Exceptional return value of java.io.File.delete() ignored"

Location:
trunk/src/org/openstreetmap/josm/io
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/io/CachedFile.java

    r9280 r9296  
    335335                    File lfile = new File(localPath.get(1));
    336336                    if (lfile.exists()) {
    337                         lfile.delete();
     337                        Utils.deleteFile(lfile);
    338338                    }
    339339                }
  • trunk/src/org/openstreetmap/josm/io/OsmExporter.java

    r8846 r9296  
    9393            if (noBackup || !Main.pref.getBoolean("save.keepbackup", false)) {
    9494                if (tmpFile != null) {
    95                     tmpFile.delete();
     95                    Utils.deleteFile(tmpFile);
    9696                }
    9797            }
Note: See TracChangeset for help on using the changeset viewer.