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

Jean-Noel Rouvignac
02.57.2013 157717b205d4c1f957cf810e04e06f11530c619c
opends/src/server/org/opends/server/replication/plugin/FakeOperationComparator.java
@@ -23,12 +23,12 @@
 *
 *
 *      Copyright 2006-2008 Sun Microsystems, Inc.
 *      Portions copyright 2013 ForgeRock AS
 */
package org.opends.server.replication.plugin;
import java.util.Comparator;
/**
 * This Class implements a Comparator that can be used to build TreeSet
 * containing FakeOperations sorted by the ChangeNumber order.
@@ -38,10 +38,11 @@
  /**
   * {@inheritDoc}
   */
  @Override
  public int compare(FakeOperation op1, FakeOperation op2)
  {
    if (op1 == null)
      return -1;
    return op1.getChangeNumber().compareTo(op2.getChangeNumber());
    return op1.getCSN().compareTo(op2.getCSN());
  }
}