From 2a3158aad80fc910b83336485b3e545dea50066c Mon Sep 17 00:00:00 2001
From: Jean-Noël Rouvignac <jean-noel.rouvignac@forgerock.com>
Date: Wed, 20 Apr 2016 09:23:30 +0000
Subject: [PATCH] guitools + quicksetup: added @Override + Autorefactor'ed comments
---
opendj-server-legacy/src/main/java/org/opends/guitools/controlpanel/datamodel/BaseDNDescriptor.java | 22 +++++-----------------
1 files changed, 5 insertions(+), 17 deletions(-)
diff --git a/opendj-server-legacy/src/main/java/org/opends/guitools/controlpanel/datamodel/BaseDNDescriptor.java b/opendj-server-legacy/src/main/java/org/opends/guitools/controlpanel/datamodel/BaseDNDescriptor.java
index 9e19db3..e6fe548 100644
--- a/opendj-server-legacy/src/main/java/org/opends/guitools/controlpanel/datamodel/BaseDNDescriptor.java
+++ b/opendj-server-legacy/src/main/java/org/opends/guitools/controlpanel/datamodel/BaseDNDescriptor.java
@@ -23,26 +23,17 @@
/**
* This class is used to represent a Base DN / Replica and is aimed to be
* used by the classes in the BackendTableModel class.
- *
*/
public class BaseDNDescriptor implements Comparable<BaseDNDescriptor>
{
- /**
- * An enumeration describing the type of base DN for a given backend.
- */
+ /** An enumeration describing the type of base DN for a given backend. */
public enum Type
{
- /**
- * The base DN is not replicated.
- */
+ /** The base DN is not replicated. */
NOT_REPLICATED,
- /**
- * The base DN is replicated.
- */
+ /** The base DN is replicated. */
REPLICATED,
- /**
- * Replication is disabled.
- */
+ /** Replication is disabled. */
DISABLED
}
@@ -90,7 +81,6 @@
return baseDn;
}
- /** {@inheritDoc} */
@Override
public boolean equals(Object v)
{
@@ -120,14 +110,13 @@
&& getBackend().getBackendID().equals(desc.getBackend().getBackendID());
}
- /** {@inheritDoc} */
@Override
public int hashCode()
{
return hashCode;
}
- /** {@inheritDoc} */
+ @Override
public int compareTo(BaseDNDescriptor desc)
{
int returnValue = desc.getDn().compareTo(getDn());
@@ -285,7 +274,6 @@
* Method called when one of the elements that affect the value of the
* hashcode is modified. It is used to minimize the time spent calculating
* hashCode.
- *
*/
private void recalculateHashCode()
{
--
Gitblit v1.10.0