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

matthew_swift
03.04.2009 39db72786ec179e67e3c1c0c71a2e93672999ea5
sdk/src/org/opends/sdk/schema/AbstractSubstringMatchingRuleImpl.java
@@ -28,10 +28,11 @@
import static com.sun.opends.sdk.util.Messages.*;
import java.util.LinkedList;
import java.util.List;
import org.opends.messages.SchemaMessages;
import org.opends.sdk.Assertion;
import org.opends.sdk.ConditionResult;
import org.opends.sdk.DecodeException;
@@ -172,7 +173,7 @@
    if (value.length() == 0)
    {
      throw DecodeException.error(
          SchemaMessages.WARN_ATTR_SYNTAX_SUBSTRING_EMPTY.get());
          WARN_ATTR_SYNTAX_SUBSTRING_EMPTY.get());
    }
    ByteSequence initialString = null;
@@ -199,7 +200,7 @@
    if (reader.remaining() == 0)
    {
      throw DecodeException.error(
          SchemaMessages.WARN_ATTR_SYNTAX_SUBSTRING_NO_WILDCARDS
          WARN_ATTR_SYNTAX_SUBSTRING_NO_WILDCARDS
              .get(value.toString()));
    }
    while (true)
@@ -211,7 +212,7 @@
        if (bytes.length() == 0)
        {
          throw DecodeException.error(
              SchemaMessages.WARN_ATTR_SYNTAX_SUBSTRING_CONSECUTIVE_WILDCARDS
              WARN_ATTR_SYNTAX_SUBSTRING_CONSECUTIVE_WILDCARDS
                  .get(value.toString(), reader.pos()));
        }
        if (anyStrings == null)