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/CountryStringSyntax.java | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
diff --git a/opends/src/server/org/opends/server/schema/CountryStringSyntax.java b/opends/src/server/org/opends/server/schema/CountryStringSyntax.java
index 0f0ef2e..98462cb 100644
--- a/opends/src/server/org/opends/server/schema/CountryStringSyntax.java
+++ b/opends/src/server/org/opends/server/schema/CountryStringSyntax.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.*;
@@ -233,10 +232,10 @@
* @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)
{
- String stringValue = toLowerCase(value.stringValue());
+ String stringValue = toLowerCase(value.toString());
if (stringValue.length() != 2)
{
invalidReason.append(
--
Gitblit v1.10.0