From 661593f15f14aaf55d73c7979dab1e900ebae2af Mon Sep 17 00:00:00 2001
From: Jean-Noel Rouvignac <jean-noel.rouvignac@forgerock.com>
Date: Wed, 15 Oct 2014 15:17:11 +0000
Subject: [PATCH] AutoRefactored comments/javadocs on OpenDJ SDK
---
opendj-sdk/opendj-config/src/main/java/org/forgerock/opendj/config/GenericConstraint.java | 38 +++++++++++++-------------------------
1 files changed, 13 insertions(+), 25 deletions(-)
diff --git a/opendj-sdk/opendj-config/src/main/java/org/forgerock/opendj/config/GenericConstraint.java b/opendj-sdk/opendj-config/src/main/java/org/forgerock/opendj/config/GenericConstraint.java
index 17ad341..ab09601 100644
--- a/opendj-sdk/opendj-config/src/main/java/org/forgerock/opendj/config/GenericConstraint.java
+++ b/opendj-sdk/opendj-config/src/main/java/org/forgerock/opendj/config/GenericConstraint.java
@@ -52,14 +52,12 @@
*/
private final class ClientHandler extends ClientConstraintHandler {
- // Private constructor.
+ /** Private constructor. */
private ClientHandler() {
// No implementation required.
}
- /**
- * {@inheritDoc}
- */
+ /** {@inheritDoc} */
@Override
public boolean isAddAcceptable(ManagementContext context, ManagedObject<?> managedObject,
Collection<LocalizableMessage> unacceptableReasons) throws LdapException {
@@ -71,9 +69,7 @@
}
}
- /**
- * {@inheritDoc}
- */
+ /** {@inheritDoc} */
@Override
public boolean isModifyAcceptable(ManagementContext context, ManagedObject<?> managedObject,
Collection<LocalizableMessage> unacceptableReasons) throws LdapException {
@@ -92,14 +88,12 @@
*/
private final class ServerHandler extends ServerConstraintHandler {
- // Private constructor.
+ /** Private constructor. */
private ServerHandler() {
// No implementation required.
}
- /**
- * {@inheritDoc}
- */
+ /** {@inheritDoc} */
@Override
public boolean isUsable(ServerManagedObject<?> managedObject,
Collection<LocalizableMessage> unacceptableReasons) throws ConfigException {
@@ -113,19 +107,19 @@
};
- // The client-side constraint handler.
+ /** The client-side constraint handler. */
private final ClientConstraintHandler clientHandler = new ClientHandler();
- // The condition associated with this constraint.
+ /** The condition associated with this constraint. */
private final Condition condition;
- // The managed object definition associated with this constraint.
+ /** The managed object definition associated with this constraint. */
private final AbstractManagedObjectDefinition<?, ?> definition;
- // The constraint ID.
+ /** The constraint ID. */
private final int id;
- // The server-side constraint handler.
+ /** The server-side constraint handler. */
private final ServerConstraintHandler serverHandler = new ServerHandler();
/**
@@ -144,16 +138,12 @@
this.condition = condition;
}
- /**
- * {@inheritDoc}
- */
+ /** {@inheritDoc} */
public Collection<ClientConstraintHandler> getClientConstraintHandlers() {
return Collections.singleton(clientHandler);
}
- /**
- * {@inheritDoc}
- */
+ /** {@inheritDoc} */
public Collection<ServerConstraintHandler> getServerConstraintHandlers() {
return Collections.singleton(serverHandler);
}
@@ -180,9 +170,7 @@
return resource.getMessage(definition, property, locale);
}
- /**
- * {@inheritDoc}
- */
+ /** {@inheritDoc} */
@Override
protected void initialize() throws Exception {
condition.initialize(definition);
--
Gitblit v1.10.0