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

Nicolas Capponi
17.38.2014 a435d43b65859fa6384fd1edb2dd6e7f38f095fe
opendj3-server-dev/src/guitools/org/opends/guitools/controlpanel/ui/MatchingRulePanel.java
@@ -273,20 +273,19 @@
  static LocalizableMessage getTypeValue(MatchingRule matchingRule)
  {
    LocalizableMessage text;
    String matchingRuleName = matchingRule.getClass().getSimpleName().toLowerCase();
    if (matchingRuleName.contains("equality"))
    if (Utilities.isEqualityMatchingRule(matchingRule))
    {
      text = INFO_CTRL_PANEL_INDEX_EQUALITY.get();
    }
    else if (matchingRuleName.contains("ordering"))
    else if (Utilities.isOrderingMatchingRule(matchingRule))
    {
      text = INFO_CTRL_PANEL_INDEX_ORDERING.get();
    }
    else if (matchingRuleName.contains("substring"))
    else if (Utilities.isSubstringMatchingRule(matchingRule))
    {
      text = INFO_CTRL_PANEL_INDEX_SUBSTRING.get();
    }
    else if (matchingRuleName.contains("approximate"))
    else if (Utilities.isApproximateMatchingRule(matchingRule))
    {
      text = INFO_CTRL_PANEL_INDEX_APPROXIMATE.get();
    }