From 83f86f11c27378d650c3bfc7e55397687062edbc Mon Sep 17 00:00:00 2001
From: Jean-Noël Rouvignac <jean-noel.rouvignac@forgerock.com>
Date: Fri, 22 Apr 2016 14:23:28 +0000
Subject: [PATCH] Improvements suggested by UCDetector: remove dead code, add final keywords, change visibilities
---
opendj-server-legacy/src/main/java/org/opends/guitools/controlpanel/ui/RootMonitoringPanel.java | 16 ++++++++--------
1 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/opendj-server-legacy/src/main/java/org/opends/guitools/controlpanel/ui/RootMonitoringPanel.java b/opendj-server-legacy/src/main/java/org/opends/guitools/controlpanel/ui/RootMonitoringPanel.java
index b8d51b7..6da6a4a 100644
--- a/opendj-server-legacy/src/main/java/org/opends/guitools/controlpanel/ui/RootMonitoringPanel.java
+++ b/opendj-server-legacy/src/main/java/org/opends/guitools/controlpanel/ui/RootMonitoringPanel.java
@@ -36,16 +36,16 @@
import static org.opends.messages.BackendMessages.*;
/** The panel displaying the root monitor panel. */
-public class RootMonitoringPanel extends GeneralMonitoringPanel
+class RootMonitoringPanel extends GeneralMonitoringPanel
{
private static final long serialVersionUID = 9031734563746269830L;
- private JLabel openConnections = Utilities.createDefaultLabel();
- private JLabel maxConnections = Utilities.createDefaultLabel();
- private JLabel totalConnections = Utilities.createDefaultLabel();
- private JLabel startTime = Utilities.createDefaultLabel();
- private JLabel upTime = Utilities.createDefaultLabel();
- private JLabel version = Utilities.createDefaultLabel();
+ private final JLabel openConnections = Utilities.createDefaultLabel();
+ private final JLabel maxConnections = Utilities.createDefaultLabel();
+ private final JLabel totalConnections = Utilities.createDefaultLabel();
+ private final JLabel startTime = Utilities.createDefaultLabel();
+ private final JLabel upTime = Utilities.createDefaultLabel();
+ private final JLabel version = Utilities.createDefaultLabel();
/** Default constructor. */
public RootMonitoringPanel()
@@ -119,7 +119,7 @@
setBorder(PANEL_BORDER);
}
- /** Updates the contents of the panel. */
+ @Override
public void updateContents()
{
ServerDescriptor server = null;
--
Gitblit v1.10.0