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

Ludovic Poitou
03.49.2012 7abbb345eef76a61780969f993aefa9fd80ac50f
Sping cleanup of the code, getting rid of unused class and tests.
Fix minor issues and optimizations suggested by FindBugs and NetBeans.
4 files deleted
1 files modified
1284 ■■■■■ changed files
opends/src/server/org/opends/server/interop/LazyDN.java 362 ●●●●● patch | view | raw | blame | history
opends/src/server/org/opends/server/interop/package-info.java 40 ●●●●● patch | view | raw | blame | history
opends/src/server/org/opends/server/types/DN.java 12 ●●●●● patch | view | raw | blame | history
opends/tests/unit-tests-testng/src/server/org/opends/server/interop/InteropTestCase.java 46 ●●●●● patch | view | raw | blame | history
opends/tests/unit-tests-testng/src/server/org/opends/server/interop/LazyDNTestCase.java 824 ●●●●● patch | view | raw | blame | history
opends/src/server/org/opends/server/interop/LazyDN.java
File was deleted
opends/src/server/org/opends/server/interop/package-info.java
File was deleted
opends/src/server/org/opends/server/types/DN.java
@@ -23,6 +23,7 @@
 *
 *
 *      Copyright 2006-2009 Sun Microsystems, Inc.
 *      Portions Copyright 2012 ForgeRock AS
 */
package org.opends.server.types;
@@ -53,7 +54,7 @@
     mayInstantiate=true,
     mayExtend=false,
     mayInvoke=true)
public class DN
public final class DN
       implements Comparable<DN>, Serializable
{
/*
@@ -74,7 +75,7 @@
  /**
   * A singleton instance of the null DN (a DN with no components).
   */
  public static DN NULL_DN = new DN();
  public static final DN NULL_DN = new DN();
@@ -537,7 +538,7 @@
    // escaped characters.  If so, then the easiest and safest
    // approach is to convert the DN to a string and decode it that
    // way.
    byte b = 0;
    byte b;
    for (int i = 0; i < length; i++)
    {
      b = dnString.byteAt(i);
@@ -2674,7 +2675,7 @@
      return true;
    }
    if (o == null)
    if (!(o instanceof DN))
    {
      return false;
    }
@@ -2774,7 +2775,7 @@
   * @return  The normalized string representation of the provided RDN
   *          components.
   */
  private static final String normalize(RDN[] rdnComponents)
  private static String normalize(RDN[] rdnComponents)
  {
    if (rdnComponents.length == 0)
    {
@@ -2838,6 +2839,7 @@
   *          after the provided DN, or zero if there is no difference
   *          with regard to ordering.
   */
  @Override
  public int compareTo(DN dn)
  {
    if (equals(dn))
opends/tests/unit-tests-testng/src/server/org/opends/server/interop/InteropTestCase.java
File was deleted
opends/tests/unit-tests-testng/src/server/org/opends/server/interop/LazyDNTestCase.java
File was deleted