From 61b9eb1be03fc03a9f4bb0013a08ff44a1059503 Mon Sep 17 00:00:00 2001
From: Jean-Noël Rouvignac <jean-noel.rouvignac@forgerock.com>
Date: Wed, 20 Apr 2016 14:25:46 +0000
Subject: [PATCH] opendj-server-legacy: added @Override + Autorefactor'ed comments
---
opendj-server-legacy/src/main/java/org/opends/server/protocols/ldap/LDAPControl.java | 21 +++------------------
1 files changed, 3 insertions(+), 18 deletions(-)
diff --git a/opendj-server-legacy/src/main/java/org/opends/server/protocols/ldap/LDAPControl.java b/opendj-server-legacy/src/main/java/org/opends/server/protocols/ldap/LDAPControl.java
index d085a6f..964032f 100644
--- a/opendj-server-legacy/src/main/java/org/opends/server/protocols/ldap/LDAPControl.java
+++ b/opendj-server-legacy/src/main/java/org/opends/server/protocols/ldap/LDAPControl.java
@@ -12,11 +12,10 @@
* information: "Portions Copyright [year] [name of copyright owner]".
*
* Copyright 2006-2008 Sun Microsystems, Inc.
- * Portions Copyright 2014-2015 ForgeRock AS.
+ * Portions Copyright 2014-2016 ForgeRock AS.
*/
package org.opends.server.protocols.ldap;
-
import java.io.IOException;
import org.forgerock.opendj.io.*;
@@ -25,7 +24,6 @@
import static org.opends.server.util.ServerConstants.*;
-
/**
* This class defines the data structures and methods to use when interacting
* with a generic LDAP control.
@@ -35,8 +33,6 @@
/** The control value. */
private ByteString value;
-
-
/**
* Creates a new LDAP control with the specified OID. It will not be
* critical, and will not have a value.
@@ -48,8 +44,6 @@
super(oid, false);
}
-
-
/**
* Creates a new LDAP control with the specified OID and criticality. It will
* not have a value.
@@ -63,8 +57,6 @@
super(oid, isCritical);
}
-
-
/**
* Creates a new LDAP control with the specified OID, criticality, and value.
*
@@ -79,7 +71,6 @@
this.value = value;
}
-
/**
* Retrieves the value for this control.
*
@@ -91,8 +82,6 @@
return value;
}
-
-
/**
* Indicates whether this control has a value.
*
@@ -104,7 +93,7 @@
return value != null;
}
- /** {@inheritDoc} */
+ @Override
public void writeValue(ASN1Writer stream) throws IOException
{
if (value != null)
@@ -113,14 +102,13 @@
}
}
-
-
/**
* Appends a string representation of this LDAP control to the provided
* buffer.
*
* @param buffer The buffer to which the information should be appended.
*/
+ @Override
public void toString(StringBuilder buffer)
{
buffer.append("LDAPControl(oid=");
@@ -137,8 +125,6 @@
buffer.append(")");
}
-
-
/**
* Appends a multi-line string representation of this LDAP control to the
* provided buffer.
@@ -176,4 +162,3 @@
}
}
}
-
--
Gitblit v1.10.0