@Override
  public boolean equals(Object obj) {
    if (this == obj) {
      return true;
    }
    if (obj == null) {
      return false;
    }
    if (!(obj instanceof LocalLockInfo)) {
      return false;
    }
    LocalLockInfo other = (LocalLockInfo) obj;
    if (info == null) {
      if (other.info != null) {
        return false;
      }
    } else if (!info.getClassName().equals(other.info.getClassName())) {
      return false;
    } else if (info.getIdentityHashCode() != other.info.getIdentityHashCode()) {
      return false;
    }
    if (locatility == null) {
      return other.locatility == null;
    } else
      return locatility.equals(other.locatility);
  }
This class is serializable version of the java 1.6 lock info class. It also holds a locality
field to identify the VM where the lock is held.
geode-core/src/main/java/org/apache/geode/distributed/internal/deadlock/LocalLockInfo.java