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

Jean-Noel Rouvignac
23.44.2015 6638c2755466ca601450700d5a39f390f23d4781
opendj-server-legacy/src/main/java/org/opends/guitools/controlpanel/util/LowerCaseComparator.java
@@ -22,6 +22,7 @@
 *
 *
 *      Copyright 2008 Sun Microsystems, Inc.
 *      Portions Copyright 2015 ForgeRock AS.
 */
package org.opends.guitools.controlpanel.util;
@@ -29,18 +30,15 @@
import java.util.Comparator;
/**
 * Class used to compare Strings without take into account the case.  It can
 * be used to sort Strings in TreeSets for instance.
 *
 * Class used to compare Strings without taking into account the case.
 * It can be used to sort Strings in TreeSets for instance.
 */
public class LowerCaseComparator implements Comparator<String>
{
  /**
   * {@inheritDoc}
   */
  /** {@inheritDoc} */
  public int compare(String s1, String s2)
  {
    if ((s1 != null) && (s2 != null))
    if (s1 != null && s2 != null)
    {
      return s1.toLowerCase().compareTo(s2.toLowerCase());
    }