public boolean equals (Object obj) { if (obj == null) return false; if (obj == this) return true; if (obj instanceof AtomicTransaction) { /* * If we can't get either coordinator to compare, then assume * transactions are different. */ try { AtomicTransaction tx = (AtomicTransaction) obj; ControlWrapper txControl = tx._theAction; if ((_theAction == null) && (txControl == null)) return true; else return _theAction.equals(txControl); } catch (Exception e) { } } return false; }
return false; } else { return _theAction.equals(txControl);
valid = _theAction.equals(currentTransaction);
valid = _theAction.equals(currentTransaction);