From 22094368c2865dcfb6daf8366425212b721a4657 Mon Sep 17 00:00:00 2001
From: matthew_swift <matthew_swift@localhost>
Date: Thu, 05 Feb 2009 17:42:14 +0000
Subject: [PATCH] Merge ASN1 branch to trunk

---
 opends/src/server/org/opends/server/schema/GuideSyntax.java |    7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/opends/src/server/org/opends/server/schema/GuideSyntax.java b/opends/src/server/org/opends/server/schema/GuideSyntax.java
index fb62e79..8990a07 100644
--- a/opends/src/server/org/opends/server/schema/GuideSyntax.java
+++ b/opends/src/server/org/opends/server/schema/GuideSyntax.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.*;
@@ -221,11 +220,11 @@
    * @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)
   {
     // Get a lowercase string version of the provided value.
-    String valueStr = toLowerCase(value.stringValue());
+    String valueStr = toLowerCase(value.toString());
 
 
     // Find the position of the octothorpe.  If there isn't one, then the entire

--
Gitblit v1.10.0