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

Ludovic Poitou
22.31.2012 b34c1300efa1ade104ed7ff3e5f71eded11db378
Minor code cleanup : remove of useless initializations and tests.
2 files modified
9 ■■■■■ changed files
opends/src/server/org/opends/server/tools/dsreplication/LocalPurgeHistorical.java 7 ●●●●● patch | view | raw | blame | history
opends/src/server/org/opends/server/tools/dsreplication/ReplicationCliMain.java 2 ●●● patch | view | raw | blame | history
opends/src/server/org/opends/server/tools/dsreplication/LocalPurgeHistorical.java
@@ -23,6 +23,7 @@
 *
 *
 *      Copyright 2010 Sun Microsystems, Inc.
 *      Portions Copyright 2012 ForgeRock AS
 */
package org.opends.server.tools.dsreplication;
@@ -96,7 +97,7 @@
    boolean applyTimeout = uData.getMaximumDuration() > 0;
    long startTime = TimeThread.getTime();
    long purgeMaxTime = getTimeoutInSeconds() * 1000;
    long purgeMaxTime = getTimeoutInSeconds() * 1000L;
    long endMaxTime = startTime + purgeMaxTime;
@@ -106,7 +107,6 @@
    PointAdder pointAdder = new PointAdder(app);
    pointAdder.start();
    LDAPReplicationDomain domain = null;
    Class<?> cfgClass;
    try
@@ -166,7 +166,8 @@
      {
        DN dn = DN.decode(baseDN);
        // We can assume that this is an LDAP replication domain
        domain = LDAPReplicationDomain.retrievesReplicationDomain(dn);
        LDAPReplicationDomain domain =
            LDAPReplicationDomain.retrievesReplicationDomain(dn);
        domain.purgeConflictsHistorical(null, startTime + purgeMaxTime);
      }
opends/src/server/org/opends/server/tools/dsreplication/ReplicationCliMain.java
@@ -8043,7 +8043,7 @@
      domains[i] = sync.getReplicationDomain(domainNames[i]);
    }
    ReplicationDomainCfgClient domain = null;
    for (int i=0; i<domains.length && (domain == null); i++)
    for (int i=0; i<domains.length; i++)
    {
      if (Utils.areDnsEqual(baseDN, domains[i].getBaseDN().toString()))
      {