[errorprone] Don't throw exception in finally

Instead log the problem. There is no reason to panic when we fail to
delete a single temporary file in java.io.tmpdir.

Change-Id: Idb867b3f07b090c7453ccd3688e94097df3b2672
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
This commit is contained in:
Matthias Sohn 2019-10-25 15:11:42 +02:00
parent 6ba8f37ab7
commit 5625f70d25
1 changed files with 1 additions and 1 deletions

View File

@ -844,7 +844,7 @@ private void detectSymlinkSupport() {
try {
FileUtils.delete(tempFile);
} catch (IOException e) {
throw new RuntimeException(e); // panic
LOG.error(JGitText.get().cannotDeleteFile, tempFile);
}
}
}