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

Ludovic Poitou
24.44.2013 46fd9423ab622d7f9531aa1564846ec52fe09534
opends/src/server/org/opends/server/replication/common/ChangeNumber.java
@@ -23,6 +23,7 @@
 *
 *
 *      Copyright 2006-2009 Sun Microsystems, Inc.
 *      Portions Copyright 2013 ForgeRock AS.
 */
package org.opends.server.replication.common;
@@ -121,12 +122,9 @@
    if (obj instanceof ChangeNumber)
    {
      ChangeNumber cn = (ChangeNumber) obj;
      if ((this.seqnum == cn.seqnum)  &&
          (this.serverId == cn.serverId) &&
          (this.timeStamp == cn.timeStamp) )
        return true;
      else
        return false;
      return this.seqnum == cn.seqnum &&
          this.serverId == cn.serverId &&
          this.timeStamp == cn.timeStamp;
    }
    else
      return false;
@@ -274,10 +272,7 @@
   */
  public Boolean older(ChangeNumber CN)
  {
    if (compare(this, CN) < 0)
      return true;
    return false;
    return compare(this, CN) < 0;
  }
  /**
@@ -288,10 +283,7 @@
   */
  public Boolean olderOrEqual(ChangeNumber CN)
  {
    if (compare(this, CN) <= 0)
      return true;
    return false;
    return compare(this, CN) <= 0;
  }
  /**
@@ -301,10 +293,7 @@
   */
  public boolean newerOrEquals(ChangeNumber CN)
  {
    if (compare(this, CN) >= 0)
      return true;
    return false;
    return compare(this, CN) >= 0;
  }
  /**
@@ -314,10 +303,7 @@
   */
  public boolean newer(ChangeNumber CN)
  {
    if (compare(this, CN) > 0)
      return true;
    return false;
    return compare(this, CN) > 0;
  }
  /**