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/GeneralMonitoringPanel.java | 13 +++++++++----
1 files changed, 9 insertions(+), 4 deletions(-)
diff --git a/opendj-server-legacy/src/main/java/org/opends/guitools/controlpanel/ui/GeneralMonitoringPanel.java b/opendj-server-legacy/src/main/java/org/opends/guitools/controlpanel/ui/GeneralMonitoringPanel.java
index 9c3ab4e..712bd9c 100644
--- a/opendj-server-legacy/src/main/java/org/opends/guitools/controlpanel/ui/GeneralMonitoringPanel.java
+++ b/opendj-server-legacy/src/main/java/org/opends/guitools/controlpanel/ui/GeneralMonitoringPanel.java
@@ -21,27 +21,28 @@
import javax.swing.border.Border;
import javax.swing.border.EmptyBorder;
-import org.opends.guitools.controlpanel.event.ConfigurationChangeEvent;
import org.forgerock.i18n.LocalizableMessage;
+import org.opends.guitools.controlpanel.event.ConfigurationChangeEvent;
/**
* Abstract class used to refactor some code among the panels that display the
* contents of the global monitoring.
*/
-public abstract class GeneralMonitoringPanel extends StatusGenericPanel
+abstract class GeneralMonitoringPanel extends StatusGenericPanel
{
private static final long serialVersionUID = 2840755228290832143L;
/** The empty border shared by all the panels. */
- protected Border PANEL_BORDER = new EmptyBorder(10, 10, 10, 10);
+ protected final Border PANEL_BORDER = new EmptyBorder(10, 10, 10, 10);
/** The message to express that the value was not found. */
- protected static LocalizableMessage NO_VALUE_SET =
+ protected final static LocalizableMessage NO_VALUE_SET =
INFO_CTRL_PANEL_NO_MONITORING_VALUE.get();
@Override
public void configurationChanged(ConfigurationChangeEvent ev)
{
+ // no-op
}
@Override
@@ -53,5 +54,9 @@
@Override
public void okClicked()
{
+ // no-op
}
+
+ /** Updates the contents of the panel. */
+ public abstract void updateContents();
}
--
Gitblit v1.10.0