From 386759cd38895b2627dcbf590746d05547d15976 Mon Sep 17 00:00:00 2001
From: Ludovic Poitou <ludovic.poitou@forgerock.com>
Date: Wed, 15 Feb 2012 23:05:24 +0000
Subject: [PATCH] Code cleanup.

---
 opendj-sdk/opends/src/server/org/opends/server/tools/LDAPAuthenticationHandler.java |   13 ++++++++-----
 1 files changed, 8 insertions(+), 5 deletions(-)

diff --git a/opendj-sdk/opends/src/server/org/opends/server/tools/LDAPAuthenticationHandler.java b/opendj-sdk/opends/src/server/org/opends/server/tools/LDAPAuthenticationHandler.java
index cac5606..06cfcee 100644
--- a/opendj-sdk/opends/src/server/org/opends/server/tools/LDAPAuthenticationHandler.java
+++ b/opendj-sdk/opends/src/server/org/opends/server/tools/LDAPAuthenticationHandler.java
@@ -23,6 +23,7 @@
  *
  *
  *      Copyright 2006-2009 Sun Microsystems, Inc.
+ *      Portions Copyright 2012 ForgeRock AS
  */
 package org.opends.server.tools;
 import org.opends.messages.Message;
@@ -92,7 +93,7 @@
  *   <LI>PLAIN</LI>
  * </UL>
  * <BR><BR>
- * Note that this implementation is not threadsafe, so if the same
+ * Note that this implementation is not thread safe, so if the same
  * <CODE>AuthenticationHandler</CODE> object is to be used concurrently by
  * multiple threads, it must be externally synchronized.
  */
@@ -103,14 +104,14 @@
   private ByteSequence gssapiBindDN;
 
   // The LDAP reader that will be used to read data from the server.
-  private LDAPReader reader;
+  private final LDAPReader reader;
 
   // The LDAP writer that will be used to send data to the server.
-  private LDAPWriter writer;
+  private final LDAPWriter writer;
 
   // The atomic integer that will be used to obtain message IDs for request
   // messages.
-  private AtomicInteger nextMessageID;
+  private final AtomicInteger nextMessageID;
 
   // An array filled with the inner pad byte.
   private byte[] iPad;
@@ -137,7 +138,7 @@
   private String gssapiQoP;
 
   // The host name used to connect to the remote system.
-  private String hostName;
+  private final String hostName;
 
   // The SASL mechanism that will be used for callback authentication.
   private String saslMechanism;
@@ -3209,6 +3210,7 @@
    * @throws  LDAPException  If a server-side problem occurs during the bind
    *                         processing.
    */
+  @Override
   public Object run()
          throws ClientException, LDAPException
   {
@@ -3593,6 +3595,7 @@
    * @throws  UnsupportedCallbackException  If an unexpected callback is
    *                                        included in the provided set.
    */
+  @Override
   public void handle(Callback[] callbacks)
          throws UnsupportedCallbackException
   {

--
Gitblit v1.10.0