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

Jean-Noel Rouvignac
14.15.2014 fd650a8fd632005824a2e64d78549992ee9ffda0
opendj3-server-dev/src/server/org/opends/server/schema/CollationMatchingRuleFactory.java
@@ -875,14 +875,7 @@
    public ConditionResult valuesMatch(ByteSequence attributeValue,
        ByteSequence assertionValue)
    {
      if (assertionValue.equals(attributeValue))
      {
        return ConditionResult.TRUE;
      }
      else
      {
        return ConditionResult.FALSE;
      }
      return ConditionResult.valueOf(assertionValue.equals(attributeValue));
    }
@@ -1779,15 +1772,7 @@
        ByteSequence assertionValue)
    {
      int ret = attributeValue.compareTo(assertionValue);
      if (ret < 0)
      {
        return ConditionResult.TRUE;
      }
      else
      {
        return ConditionResult.FALSE;
      }
      return ConditionResult.valueOf(ret < 0);
    }
@@ -1847,15 +1832,7 @@
        ByteSequence assertionValue)
    {
      int ret = attributeValue.compareTo(assertionValue);
      if (ret <= 0)
      {
        return ConditionResult.TRUE;
      }
      else
      {
        return ConditionResult.FALSE;
      }
      return ConditionResult.valueOf(ret <= 0);
    }
@@ -1916,15 +1893,7 @@
        ByteSequence assertionValue)
    {
      int ret = attributeValue.compareTo(assertionValue);
      if (ret > 0)
      {
        return ConditionResult.TRUE;
      }
      else
      {
        return ConditionResult.FALSE;
      }
      return ConditionResult.valueOf(ret > 0);
    }
@@ -1984,15 +1953,7 @@
        ByteSequence assertionValue)
    {
      int ret = attributeValue.compareTo(assertionValue);
      if (ret >= 0)
      {
        return ConditionResult.TRUE;
      }
      else
      {
        return ConditionResult.FALSE;
      }
      return ConditionResult.valueOf(ret >= 0);
    }