code review update

This commit is contained in:
Karl Mortensen 2016-05-19 13:24:03 -04:00
parent ce8904f8c4
commit edf1c75524

View File

@ -32,7 +32,7 @@ import org.sleuthkit.autopsy.coreutils.Logger;
@ActionReference(path = "Menu/Case", position = 1000, separatorBefore = 999) @ActionReference(path = "Menu/Case", position = 1000, separatorBefore = 999)
@ActionID(id = "org.sleuthkit.autopsy.casemodule.ExitAction", category = "Case") @ActionID(id = "org.sleuthkit.autopsy.casemodule.ExitAction", category = "Case")
public class ExitAction implements ActionListener { final public class ExitAction implements ActionListener {
@Override @Override
public void actionPerformed(ActionEvent e) { public void actionPerformed(ActionEvent e) {
@ -42,7 +42,7 @@ public class ExitAction implements ActionListener {
currentCase.closeCase(); currentCase.closeCase();
} }
} catch (Exception ex) { } catch (Exception ex) {
Logger.getLogger(ExitAction.class.getName()).log(Level.WARNING, "Had a problem closing the case.", ex); //NON-NLS Logger.getLogger(ExitAction.class.getName()).log(Level.SEVERE, "Had a problem closing the case.", ex); //NON-NLS
} finally { } finally {
LifecycleManager.getDefault().exit(); LifecycleManager.getDefault().exit();
} }