[jboss-jira] [JBoss JIRA] (JBJCA-842) check hashCode in generated equals method
Jesper Pedersen (JIRA)
jira-events at lists.jboss.org
Fri Jun 29 08:29:12 EDT 2012
[ https://issues.jboss.org/browse/JBJCA-842?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jesper Pedersen closed JBJCA-842.
---------------------------------
Fix Version/s: (was: 1.1.0.Beta2)
Resolution: Won't Fix
> 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
>
> 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