tidy up
diff --git a/src/main/java/org/apache/log4j/chainsaw/ShutdownManager.java b/src/main/java/org/apache/log4j/chainsaw/ShutdownManager.java
index 0f3f388..e5aa005 100644
--- a/src/main/java/org/apache/log4j/chainsaw/ShutdownManager.java
+++ b/src/main/java/org/apache/log4j/chainsaw/ShutdownManager.java
@@ -13,12 +13,12 @@
import java.util.List;
public class ShutdownManager {
- private static Logger logger = LogManager.getLogger(ShutdownManager.class);
+ private static final Logger logger = LogManager.getLogger(ShutdownManager.class);
- private JFrame logUI;
- private AbstractConfiguration configuration;
- private List<ChainsawReceiver> receivers;
- private EventListenerList shutdownListenerList;
+ private final JFrame logUI;
+ private final AbstractConfiguration configuration;
+ private final List<ChainsawReceiver> receivers;
+ private final EventListenerList shutdownListenerList;
/**
* The shutdownAction is called when the user requests to exit Chainsaw, and
@@ -54,7 +54,6 @@
JOptionPane.INFORMATION_MESSAGE) != JOptionPane.YES_OPTION) {
return false;
}
-
}
final JWindow progressWindow = new JWindow();
@@ -112,16 +111,13 @@
* Ensures all the registered ShutdownListeners are notified.
*/
private void fireShutdownEvent() {
- ShutdownListener[] listeners =
- shutdownListenerList.getListeners(
- ShutdownListener.class);
+ ShutdownListener[] listeners = shutdownListenerList.getListeners(ShutdownListener.class);
for (ShutdownListener listener : listeners) {
listener.shuttingDown();
}
}
-
/**
* Configures LogUI's with an action to execute when the user requests to
* exit the application, the default action is to exit the VM. This Action is
@@ -144,5 +140,4 @@
shutdownAction.actionPerformed(
new ActionEvent(this, ActionEvent.ACTION_PERFORMED, "Shutting Down"));
}
-
}