From f2160f4bd1c8ac67e5a86a6710d431e8932877f9 Mon Sep 17 00:00:00 2001
From: matthew_swift <matthew_swift@localhost>
Date: Fri, 28 May 2010 11:47:51 +0000
Subject: [PATCH] Synchronize SDK on java.net with internal repository.
---
sdk/src/org/opends/sdk/schema/EnumOrderingMatchingRule.java | 21 ++++++++++-----------
1 files changed, 10 insertions(+), 11 deletions(-)
diff --git a/sdk/src/org/opends/sdk/schema/EnumOrderingMatchingRule.java b/sdk/src/org/opends/sdk/schema/EnumOrderingMatchingRule.java
index ab0446a..3d1c62d 100644
--- a/sdk/src/org/opends/sdk/schema/EnumOrderingMatchingRule.java
+++ b/sdk/src/org/opends/sdk/schema/EnumOrderingMatchingRule.java
@@ -28,7 +28,7 @@
-import static com.sun.opends.sdk.messages.Messages.*;
+import static com.sun.opends.sdk.messages.Messages.WARN_ATTR_SYNTAX_LDAPSYNTAX_ENUM_INVALID_VALUE;
import org.opends.sdk.ByteSequence;
import org.opends.sdk.ByteString;
@@ -39,18 +39,17 @@
/**
- * This class is the ordering matching rule implementation for an enum
- * syntax implmentation. The ordering is determined by the order of the
- * entries in the X-ENUM extension value.
+ * This class is the ordering matching rule implementation for an enum syntax
+ * implmentation. The ordering is determined by the order of the entries in the
+ * X-ENUM extension value.
*/
-final class EnumOrderingMatchingRule extends
- AbstractOrderingMatchingRuleImpl
+final class EnumOrderingMatchingRule extends AbstractOrderingMatchingRuleImpl
{
private final EnumSyntaxImpl syntax;
- EnumOrderingMatchingRule(EnumSyntaxImpl syntax)
+ EnumOrderingMatchingRule(final EnumSyntaxImpl syntax)
{
Validator.ensureNotNull(syntax);
this.syntax = syntax;
@@ -58,14 +57,14 @@
- public ByteString normalizeAttributeValue(Schema schema,
- ByteSequence value) throws DecodeException
+ public ByteString normalizeAttributeValue(final Schema schema,
+ final ByteSequence value) throws DecodeException
{
final int index = syntax.indexOf(value);
if (index < 0)
{
- throw DecodeException.error(
- WARN_ATTR_SYNTAX_LDAPSYNTAX_ENUM_INVALID_VALUE.get(value
+ throw DecodeException
+ .error(WARN_ATTR_SYNTAX_LDAPSYNTAX_ENUM_INVALID_VALUE.get(value
.toString(), syntax.getName()));
}
return ByteString.valueOf(index);
--
Gitblit v1.10.0