[jboss-jira] [JBoss JIRA] (JBJCA-842) check hashCode in generated equals method

Jeff Zhang (JIRA) jira-events at lists.jboss.org
Fri Jun 29 05:57:13 EDT 2012


Jeff Zhang created JBJCA-842:
--------------------------------

             Summary: check hashCode in generated equals method
                 Key: JBJCA-842
                 URL: https://issues.jboss.org/browse/JBJCA-842
             Project: IronJacamar
          Issue Type: Task
          Components: Code Generator
    Affects Versions: 1.1.0.Beta1
            Reporter: Jeff Zhang
            Assignee: Jeff Zhang
             Fix For: 1.1.0.Beta2


public boolean equals(Object other)
   {
      ...
      AcmeResourceAdapter obj = (AcmeResourceAdapter)other;
      boolean result = true; 
      return result;
   }

variable "obj" is never used, variable "result" is created just for set it as return value.
should be checked that obj.hashCode() equals this.hashCode()


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

        


More information about the jboss-jira mailing list