made a broad catch even broader

Former-commit-id: ed75ee0071bc9d067db84f99063a1a160d0bbc74
This commit is contained in:
Jeremy Long
2014-03-01 06:40:54 -05:00
parent 2f207de1a0
commit bb26626fd5

View File

@@ -938,9 +938,10 @@ public class JarAnalyzer extends AbstractAnalyzer implements Analyzer {
public void close() {
if (tempFileLocation != null && tempFileLocation.exists()) {
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) {
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");
}
}
}