You are viewing a plain text version of this content. The canonical link for it is here.
Posted to wagon-dev@maven.apache.org by "Brett Porter (JIRA)" <ji...@codehaus.org> on 2005/03/09 08:21:56 UTC
[jira] Closed: (WAGON-14) wagon Repository class needs equals() and hashCode() for uniqueness checks
[ http://jira.codehaus.org/browse/WAGON-14?page=history ]
Brett Porter closed WAGON-14:
-----------------------------
Resolution: Fixed
applied
> wagon Repository class needs equals() and hashCode() for uniqueness checks
> --------------------------------------------------------------------------
>
> Key: WAGON-14
> URL: http://jira.codehaus.org/browse/WAGON-14
> Project: wagon
> Type: Bug
> Versions: 1.0-alpha-2
> Environment: all
> Reporter: John Casey
> Assignee: Brett Porter
> Priority: Minor
> Fix For: 1.0-alpha-2
> Attachments: repository-identity-method-additions.txt
>
>
> Please apply the attached patch. I don't seem to have commit access...
> This allows us to use something like:
> List someList = new ArrayList();
> for(Iterator it = repos; it.hasNext(); )
> {
> Repository repo = (Repository)it.next();
> if(!someList.contains(repo))
> {
> someList.add(repo);
> }
> }
--
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
-
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: wagon-dev-unsubscribe@maven.apache.org
For additional commands, e-mail: wagon-dev-help@maven.apache.org