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/controls/PasswordPolicyResponseControl.java | 29 +++++++----------------------
1 files changed, 7 insertions(+), 22 deletions(-)
diff --git a/opendj-server-legacy/src/main/java/org/opends/server/controls/PasswordPolicyResponseControl.java b/opendj-server-legacy/src/main/java/org/opends/server/controls/PasswordPolicyResponseControl.java
index 381010f..98415c4 100644
--- a/opendj-server-legacy/src/main/java/org/opends/server/controls/PasswordPolicyResponseControl.java
+++ b/opendj-server-legacy/src/main/java/org/opends/server/controls/PasswordPolicyResponseControl.java
@@ -12,7 +12,7 @@
* information: "Portions Copyright [year] [name of copyright owner]".
*
* Copyright 2006-2009 Sun Microsystems, Inc.
- * Portions Copyright 2011-2015 ForgeRock AS.
+ * Portions Copyright 2011-2016 ForgeRock AS.
*/
package org.opends.server.controls;
import org.forgerock.i18n.LocalizableMessage;
@@ -40,13 +40,11 @@
public class PasswordPolicyResponseControl
extends Control
{
- /**
- * ControlDecoder implementation to decode this control from a ByteString.
- */
+ /** ControlDecoder implementation to decode this control from a ByteString. */
private static final class Decoder
implements ControlDecoder<PasswordPolicyResponseControl>
{
- /** {@inheritDoc} */
+ @Override
public PasswordPolicyResponseControl decode(boolean isCritical,
ByteString value)
throws DirectoryException
@@ -120,6 +118,7 @@
}
+ @Override
public String getOID()
{
return OID_ACCOUNT_USABLE_CONTROL;
@@ -127,9 +126,7 @@
}
- /**
- * The Control Decoder that can be used to decode this control.
- */
+ /** The Control Decoder that can be used to decode this control. */
public static final ControlDecoder<PasswordPolicyResponseControl> DECODER =
new Decoder();
private static final LocalizedLogger logger = LocalizedLogger.getLoggerForThisClass();
@@ -137,16 +134,12 @@
- /**
- * The BER type value for the warning element of the control value.
- */
+ /** The BER type value for the warning element of the control value. */
public static final byte TYPE_WARNING_ELEMENT = (byte) 0xA0;
- /**
- * The BER type value for the error element of the control value.
- */
+ /** The BER type value for the error element of the control value. */
public static final byte TYPE_ERROR_ELEMENT = (byte) 0x81;
@@ -292,14 +285,6 @@
return errorType;
}
-
-
- /**
- * Appends a string representation of this password policy response control to
- * the provided buffer.
- *
- * @param buffer The buffer to which the information should be appended.
- */
@Override
public void toString(StringBuilder buffer)
{
--
Gitblit v1.10.0