diff --git a/org.hl7.fhir.utilities/src/main/java/org/hl7/fhir/utilities/cache/PackageCacheManager.java b/org.hl7.fhir.utilities/src/main/java/org/hl7/fhir/utilities/cache/PackageCacheManager.java index c2a99edd3..8f4efe9f8 100644 --- a/org.hl7.fhir.utilities/src/main/java/org/hl7/fhir/utilities/cache/PackageCacheManager.java +++ b/org.hl7.fhir.utilities/src/main/java/org/hl7/fhir/utilities/cache/PackageCacheManager.java @@ -213,13 +213,8 @@ public class PackageCacheManager { } finally { fileLock.release(); } - try { - if (!lockFile.delete()) { - lockFile.deleteOnExit(); - } - } catch (Throwable t) { - System.out.println("unable to clean up lock file for "+lockFile.getName()+": "+t.getMessage()); - // nothing + if (!lockFile.delete()) { + lockFile.deleteOnExit(); } return result; }