You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Brett Porter (JIRA)" <ji...@codehaus.org> on 2008/06/13 04:36:12 UTC
[jira] Updated: (MNG-3266) maven-model RepositoryBase overrides
equals() but not hashCode()
[ http://jira.codehaus.org/browse/MNG-3266?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Brett Porter updated MNG-3266:
------------------------------
Fix Version/s: 2.0.x
> maven-model RepositoryBase overrides equals() but not hashCode()
> ----------------------------------------------------------------
>
> Key: MNG-3266
> URL: http://jira.codehaus.org/browse/MNG-3266
> Project: Maven 2
> Issue Type: Bug
> Affects Versions: 2.0.7
> Reporter: Jared Roberts
> Priority: Minor
> Fix For: 2.0.x
>
> Attachments: MNG-3266-maven-model-v2.patch, MNG-3266-maven-model.patch
>
>
> Overriding equals and not hashCode is considered bad practice. Also, while looking around, I noticed the two subclasses (Repository and PluginRepository) both override equals and just call "super.equals()". There is a cryptic comment nearby that leads me to believe this is a temporary fix for an old problem.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira