From 138a3114de9e1b69a16c67f052d01270c05064d6 Mon Sep 17 00:00:00 2001
From: Jean-Noel Rouvignac <jean-noel.rouvignac@forgerock.com>
Date: Thu, 12 Dec 2013 14:27:12 +0000
Subject: [PATCH] Code cleanup in the virtual attributes.

---
 opends/src/server/org/opends/server/api/VirtualAttributeProvider.java |   24 +++++++++++-------------
 1 files changed, 11 insertions(+), 13 deletions(-)

diff --git a/opends/src/server/org/opends/server/api/VirtualAttributeProvider.java b/opends/src/server/org/opends/server/api/VirtualAttributeProvider.java
index 8e9fbfe..9c124ca 100644
--- a/opends/src/server/org/opends/server/api/VirtualAttributeProvider.java
+++ b/opends/src/server/org/opends/server/api/VirtualAttributeProvider.java
@@ -23,27 +23,23 @@
  *
  *
  *      Copyright 2006-2009 Sun Microsystems, Inc.
- *      Portions Copyright 2012 ForgeRock AS
+ *      Portions Copyright 2012-2013 ForgeRock AS
  */
 package org.opends.server.api;
-import org.opends.messages.Message;
-
-
 
 import java.util.ArrayList;
 import java.util.Collection;
 import java.util.List;
 import java.util.Set;
 
+import org.opends.messages.Message;
 import org.opends.server.admin.std.server.VirtualAttributeCfg;
 import org.opends.server.config.ConfigException;
 import org.opends.server.core.SearchOperation;
+import org.opends.server.loggers.debug.DebugTracer;
 import org.opends.server.types.*;
 
 import static org.opends.server.loggers.debug.DebugLogger.*;
-import org.opends.server.loggers.debug.DebugTracer;
-
-
 
 /**
  * This class defines the set of methods and structures that must be
@@ -82,9 +78,11 @@
    *                                   related to the server
    *                                   configuration.
    */
-  public abstract void initializeVirtualAttributeProvider(
-                            T configuration)
-         throws ConfigException, InitializationException;
+  public void initializeVirtualAttributeProvider(T configuration)
+      throws ConfigException, InitializationException
+  {
+    // No initialization required
+  }
 
 
 
@@ -186,7 +184,7 @@
    * @param  value  The value for which to make the determination.
    *
    * @return  {@code true} if this virtual attribute provider will
-   *          generate the specified vaule for the provided entry, or
+   *          generate the specified value for the provided entry, or
    *          {@code false} if not.
    */
   public boolean hasValue(Entry entry, VirtualAttributeRule rule,
@@ -222,7 +220,7 @@
 
 
   /**
-   * Indicates whether this virutal attribute provider will generate
+   * Indicates whether this virtual attribute provider will generate
    * any of the values in the provided collection.
    *
    * @param  entry   The entry for which to make the determination.
@@ -566,7 +564,7 @@
    * @param  value  The value for which to make the determination.
    *
    * @return  {@code UNDEFINED} if the associated attribute type does
-   *          not have an aproximate matching rule, {@code TRUE} if at
+   *          not have an approximate matching rule, {@code TRUE} if at
    *          least one of the generated values will be approximately
    *          equal to the specified value, or {@code FALSE} if none
    *          of the generated values will be approximately equal to

--
Gitblit v1.10.0