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

Ludovic Poitou
25.47.2011 ad1e1e776a8f5386df8237af2bc413446c4d8762
opends/src/server/org/opends/server/core/OperationWrapper.java
@@ -23,6 +23,7 @@
 *
 *
 *      Copyright 2006-2008 Sun Microsystems, Inc.
 *      Portions Copyright 2011 ForgeRock AS
 */
package org.opends.server.core;
@@ -479,6 +480,42 @@
    operation.setSynchronizationOperation(isSynchronizationOperation);
  }
  /**
   * {@inheritDoc}
   */
  public final int hashCode()
  {
    return getClientConnection().hashCode() * (int) getOperationID();
  }
  /**
   * {@inheritDoc}
   */
  public final boolean equals(Object obj)
  {
    if (this == obj)
    {
      return true;
    }
    if (obj instanceof Operation)
    {
      Operation other = (Operation) obj;
      if (other.getClientConnection().equals(getClientConnection()))
      {
        return other.getOperationID() == getOperationID();
      }
    }
    return false;
  }
  /**
   * {@inheritDoc}
   */