From d6a06db385dcf1a99e55aae84162893b4d9878c5 Mon Sep 17 00:00:00 2001
From: Jean-Noel Rouvignac <jean-noel.rouvignac@forgerock.com>
Date: Thu, 22 Aug 2013 09:52:28 +0000
Subject: [PATCH] Code cleanup. Removed useless duplicated javadocs for getMonitorData.

---
 opends/src/server/org/opends/server/replication/server/ECLServerHandler.java |   29 ++++-------------------------
 1 files changed, 4 insertions(+), 25 deletions(-)

diff --git a/opends/src/server/org/opends/server/replication/server/ECLServerHandler.java b/opends/src/server/org/opends/server/replication/server/ECLServerHandler.java
index 2399136..d6fc6f9 100644
--- a/opends/src/server/org/opends/server/replication/server/ECLServerHandler.java
+++ b/opends/src/server/org/opends/server/replication/server/ECLServerHandler.java
@@ -427,22 +427,14 @@
   {
     try
     {
-      // Process start from remote
       boolean sessionInitiatorSSLEncryption =
         processStartFromRemote(inECLStartMsg);
 
-      // lock with timeout
-      if (replicationServerDomain != null)
-      {
-        lockDomain(true);
-      }
+      lockDomainWithTimeout();
 
       localGenerationId = -1;
 
-      // send start to remote
       StartMsg outStartMsg = sendStartToRemote();
-
-      // log
       logStartHandshakeRCVandSND(inECLStartMsg, outStartMsg);
 
       // until here session is encrypted then it depends on the negotiation
@@ -455,8 +447,7 @@
         waitAndProcessStartSessionECLFromRemoteServer();
       if (inStartECLSessionMsg == null)
       {
-        // client wants to properly close the connection (client sent a
-        // StopMsg)
+        // client wants to properly close the connection (client sent a StopMsg)
         logStopReceived();
         abortStart(null);
         return;
@@ -464,7 +455,6 @@
 
       logStartECLSessionHandshake(inStartECLSessionMsg);
 
-      // initialization
       initialize(inStartECLSessionMsg);
     }
     catch(DirectoryException de)
@@ -477,11 +467,7 @@
     }
     finally
     {
-      if ((replicationServerDomain != null) &&
-          replicationServerDomain.hasLock())
-      {
-        replicationServerDomain.release();
-      }
+      releaseDomainLock();
     }
   }
 
@@ -956,14 +942,7 @@
         + ServerConstants.DN_EXTERNAL_CHANGELOG_ROOT;
   }
 
-  /**
-   * Retrieves a set of attributes containing monitor data that should be
-   * returned to the client if the corresponding monitor entry is requested.
-   *
-   * @return  A set of attributes containing monitor data that should be
-   *          returned to the client if the corresponding monitor entry is
-   *          requested.
-   */
+  /** {@inheritDoc} */
   @Override
   public List<Attribute> getMonitorData()
   {

--
Gitblit v1.10.0