made a broad catch even broader

Former-commit-id: 34ca7cd3269aca17a24e08e0db9d04ef21a17f89
This commit is contained in:
Jeremy Long
2014-03-01 06:40:54 -05:00
parent 1f9996fe62
commit ea6cca588c

View File

@@ -938,9 +938,10 @@ public class JarAnalyzer extends AbstractAnalyzer implements Analyzer {
public void close() { public void close() {
if (tempFileLocation != null && tempFileLocation.exists()) { if (tempFileLocation != null && tempFileLocation.exists()) {
Logger.getLogger(JarAnalyzer.class.getName()).log(Level.FINE, "Attempting to delete temporary files"); Logger.getLogger(JarAnalyzer.class.getName()).log(Level.FINE, "Attempting to delete temporary files");
boolean success = FileUtils.delete(tempFileLocation); final boolean success = FileUtils.delete(tempFileLocation);
if (!success) { if (!success) {
Logger.getLogger(JarAnalyzer.class.getName()).log(Level.WARNING, "Failed to delete some temporary files, see the log for more details"); Logger.getLogger(JarAnalyzer.class.getName()).log(Level.WARNING,
"Failed to delete some temporary files, see the log for more details");
} }
} }
} }