neo4j/neo4j — pull request #2351 by jakewins (2014-05-02 09:55:44+00:00)
Title: Fix GC overhead and hashCode of XidImpl

- Only allow equality of XidImpl instances, not the Xid interface,
reasoning being that hashCode cannot be equal to other xid impls since
there is no standard, and getting a xid that isn't a xidimpl is an error,
since the xids come from our tx manager, we do not manage other xids.

- Don't copy the branchID and globalId arrays on every equaylity check

- Implement a more reasonable hashcode.