From 01bf9b6a5d324d45355659581e9ebbd1280834fe Mon Sep 17 00:00:00 2001
From: Jean-Noël Rouvignac <jean-noel.rouvignac@forgerock.com>
Date: Mon, 25 Apr 2016 14:41:26 +0000
Subject: [PATCH] Improvements suggested by UCDetector: remove dead code, add final keywords, change visibilities
---
opendj-server-legacy/src/main/java/org/opends/quicksetup/ui/CustomHTMLEditorKit.java | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/opendj-server-legacy/src/main/java/org/opends/quicksetup/ui/CustomHTMLEditorKit.java b/opendj-server-legacy/src/main/java/org/opends/quicksetup/ui/CustomHTMLEditorKit.java
index 1dcd7da..0ac8cc8 100644
--- a/opendj-server-legacy/src/main/java/org/opends/quicksetup/ui/CustomHTMLEditorKit.java
+++ b/opendj-server-legacy/src/main/java/org/opends/quicksetup/ui/CustomHTMLEditorKit.java
@@ -14,13 +14,13 @@
* Copyright 2008 Sun Microsystems, Inc.
* Portions Copyright 2015-2016 ForgeRock AS.
*/
-
package org.opends.quicksetup.ui;
import java.awt.Component;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.util.HashSet;
+import java.util.Set;
import javax.swing.JButton;
import javax.swing.text.Element;
@@ -32,7 +32,7 @@
/** Class used to be able to detect events in the button inside an HTML pane. */
public class CustomHTMLEditorKit extends HTMLEditorKit
{
- private HashSet<ActionListener> listeners = new HashSet<>();
+ private final Set<ActionListener> listeners = new HashSet<>();
private static final long serialVersionUID = 298103926252426388L;
/** Default constructor. */
@@ -66,7 +66,7 @@
}
/** Class used to be able to detect events in the button inside an HTML pane. */
- class MyHTMLFactory extends HTMLFactory
+ private class MyHTMLFactory extends HTMLFactory
{
@Override
public View create(Element elem)
@@ -81,14 +81,14 @@
}
/** Class used to be able to detect events in the button inside an HTML pane. */
- class MyFormView extends FormView
+ private class MyFormView extends FormView
{
/**
* Creates a new FormView object.
*
* @param elem the element to decorate
*/
- MyFormView(Element elem)
+ private MyFormView(Element elem)
{
super(elem);
}
--
Gitblit v1.10.0