From fd650a8fd632005824a2e64d78549992ee9ffda0 Mon Sep 17 00:00:00 2001
From: Jean-Noel Rouvignac <jean-noel.rouvignac@forgerock.com>
Date: Fri, 14 Feb 2014 13:15:52 +0000
Subject: [PATCH] OPENDJ-1308 Migrate schema support

---
 opendj3-server-dev/src/server/org/opends/server/api/ApproximateMatchingRule.java |   15 +++------------
 1 files changed, 3 insertions(+), 12 deletions(-)

diff --git a/opendj3-server-dev/src/server/org/opends/server/api/ApproximateMatchingRule.java b/opendj3-server-dev/src/server/org/opends/server/api/ApproximateMatchingRule.java
index fd0094c..1c530a3 100644
--- a/opendj3-server-dev/src/server/org/opends/server/api/ApproximateMatchingRule.java
+++ b/opendj3-server-dev/src/server/org/opends/server/api/ApproximateMatchingRule.java
@@ -26,11 +26,8 @@
  */
 package org.opends.server.api;
 
-
-
-import org.forgerock.opendj.ldap.ConditionResult;
 import org.forgerock.opendj.ldap.ByteSequence;
-
+import org.forgerock.opendj.ldap.ConditionResult;
 
 /**
  * This class defines the set of methods and structures that must be
@@ -86,14 +83,8 @@
   public ConditionResult valuesMatch(ByteSequence attributeValue,
                                      ByteSequence assertionValue)
   {
-    if (approximatelyMatch(attributeValue, assertionValue))
-    {
-      return ConditionResult.TRUE;
-    }
-    else
-    {
-      return ConditionResult.FALSE;
-    }
+    return ConditionResult.valueOf(
+        approximatelyMatch(attributeValue, assertionValue));
   }
 }
 

--
Gitblit v1.10.0