mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

boli
01.27.2007 455897cc245b67d929f409a93cfa7106e835cc1f
opends/src/server/org/opends/server/schema/UniqueMemberEqualityMatchingRule.java
@@ -22,7 +22,7 @@
 * CDDL HEADER END
 *
 *
 *      Portions Copyright 2006 Sun Microsystems, Inc.
 *      Portions Copyright 2006-2007 Sun Microsystems, Inc.
 */
package org.opends.server.schema;
@@ -43,8 +43,10 @@
import org.opends.server.types.InitializationException;
import org.opends.server.types.ResultCode;
import static org.opends.server.loggers.Debug.*;
import static org.opends.server.loggers.debug.DebugLogger.debugCought;
import static org.opends.server.loggers.debug.DebugLogger.debugEnabled;
import static org.opends.server.loggers.Error.*;
import org.opends.server.types.DebugLogLevel;
import static org.opends.server.messages.MessageHandler.*;
import static org.opends.server.messages.SchemaMessages.*;
import static org.opends.server.schema.SchemaConstants.*;
@@ -61,11 +63,6 @@
public class UniqueMemberEqualityMatchingRule
       extends EqualityMatchingRule
{
  /**
   * The fully-qualified name of this class for debugging purposes.
   */
  private static final String CLASS_NAME =
       "org.opends.server.schema.UniqueMemberEqualityMatchingRule";
@@ -76,7 +73,6 @@
  {
    super();
    assert debugConstructor(CLASS_NAME);
  }
@@ -98,8 +94,6 @@
  public void initializeMatchingRule(ConfigEntry configEntry)
         throws ConfigException, InitializationException
  {
    assert debugEnter(CLASS_NAME, "initializeMatchingRule",
                      String.valueOf(configEntry));
    // No initialization is required.
  }
@@ -114,7 +108,6 @@
   */
  public String getName()
  {
    assert debugEnter(CLASS_NAME, "getName");
    return EMR_UNIQUE_MEMBER_NAME;
  }
@@ -128,7 +121,6 @@
   */
  public String getOID()
  {
    assert debugEnter(CLASS_NAME, "getOID");
    return EMR_UNIQUE_MEMBER_OID;
  }
@@ -143,7 +135,6 @@
   */
  public String getDescription()
  {
    assert debugEnter(CLASS_NAME, "getDescription");
    // There is no standard description for this matching rule.
    return null;
@@ -159,7 +150,6 @@
   */
  public String getSyntaxOID()
  {
    assert debugEnter(CLASS_NAME, "getSyntaxOID");
    return SYNTAX_NAME_AND_OPTIONAL_UID_OID;
  }
@@ -180,7 +170,6 @@
  public ByteString normalizeValue(ByteString value)
         throws DirectoryException
  {
    assert debugEnter(CLASS_NAME, "normalizeValue", String.valueOf(value));
    String valueString = value.stringValue().trim();
@@ -211,12 +200,15 @@
    }
    catch (Exception e)
    {
      assert debugException(CLASS_NAME, "normalizeValue", e);
      if (debugEnabled())
      {
        debugCought(DebugLogLevel.ERROR, e);
      }
      // We couldn't normalize the DN for some reason.  If we're supposed to use
      // strict syntax enforcement, then throw an exception.  Otherwise, log a
      // message and just try our best.
      int    msgID   = MSGID_ATTR_SYNTAX_NAMEANDUID_INVALID_DN;
      int msgID = MSGID_ATTR_SYNTAX_NAMEANDUID_INVALID_DN;
      String message = getMessage(msgID, valueString,
                                  stackTraceToSingleLineString(e));
@@ -300,8 +292,6 @@
   */
  public boolean areEqual(ByteString value1, ByteString value2)
  {
    assert debugEnter(CLASS_NAME, "areEqual", String.valueOf(value1),
                      String.valueOf(value2));
    // Since the values are already normalized, we just need to compare the
    // associated byte arrays.