unused fields in DataTree.ProcessTxnResult
------------------------------------------

                 Key: ZOOKEEPER-1255
                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-1255
             Project: ZooKeeper
          Issue Type: Sub-task
            Reporter: Thomas Koch
            Assignee: Thomas Koch
            Priority: Minor


The fields zxid, cxid and clientId in ProcessTxnResult are never used. cxid and 
clientId are used in equals() and hashCode() but the class is never ever used 
as a key or compared.

Keeping equals() and hashCode() "just in case" is a bad idea:
http://www.infoq.com/news/2011/05/less-code-is-better

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to