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

matthew_swift
05.42.2009 22094368c2865dcfb6daf8366425212b721a4657
opends/src/server/org/opends/server/schema/OtherMailboxSyntax.java
@@ -36,8 +36,7 @@
import org.opends.server.api.SubstringMatchingRule;
import org.opends.server.config.ConfigException;
import org.opends.server.core.DirectoryServer;
import org.opends.server.types.ByteString;
import org.opends.server.types.ByteSequence;
import static org.opends.server.loggers.ErrorLogger.*;
@@ -211,7 +210,7 @@
   * @return  <CODE>true</CODE> if the provided value is acceptable for use with
   *          this syntax, or <CODE>false</CODE> if not.
   */
  public boolean valueIsAcceptable(ByteString value,
  public boolean valueIsAcceptable(ByteSequence value,
                                   MessageBuilder invalidReason)
  {
    // Check to see if the provided value was null.  If so, then that's not
@@ -226,7 +225,7 @@
    // Get the value as a string and determine its length.  If it is empty, then
    // that's not acceptable.
    String valueString = value.stringValue();
    String valueString = value.toString();
    int    valueLength = valueString.length();
    if (valueLength == 0)
    {