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

matthew_swift
28.47.2010 f2160f4bd1c8ac67e5a86a6710d431e8932877f9
sdk/src/org/opends/sdk/schema/BooleanEqualityMatchingRuleImpl.java
@@ -28,7 +28,7 @@
import static com.sun.opends.sdk.messages.Messages.*;
import static com.sun.opends.sdk.messages.Messages.WARN_ATTR_SYNTAX_ILLEGAL_BOOLEAN;
import org.opends.sdk.ByteSequence;
import org.opends.sdk.ByteString;
@@ -37,14 +37,13 @@
/**
 * This class defines the booleanMatch matching rule defined in X.520
 * and referenced in RFC 4519.
 * This class defines the booleanMatch matching rule defined in X.520 and
 * referenced in RFC 4519.
 */
final class BooleanEqualityMatchingRuleImpl extends
    AbstractMatchingRuleImpl
final class BooleanEqualityMatchingRuleImpl extends AbstractMatchingRuleImpl
{
  public ByteString normalizeAttributeValue(Schema schema,
      ByteSequence value) throws DecodeException
  public ByteString normalizeAttributeValue(final Schema schema,
      final ByteSequence value) throws DecodeException
  {
    final String valueString = value.toString().toUpperCase();
    if (valueString.equals("TRUE") || valueString.equals("YES")
@@ -58,7 +57,7 @@
      return SchemaConstants.FALSE_VALUE;
    }
    throw DecodeException.error(WARN_ATTR_SYNTAX_ILLEGAL_BOOLEAN
        .get(value.toString()));
    throw DecodeException.error(WARN_ATTR_SYNTAX_ILLEGAL_BOOLEAN.get(value
        .toString()));
  }
}