maven-wagon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "John Casey (JIRA)" <j...@codehaus.org>
Subject [jira] Created: (WAGON-14) wagon Repository class needs equals() and hashCode() for uniqueness checks
Date Wed, 09 Mar 2005 07:14:53 GMT
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
 Assigned to: 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


Mime
View raw message