ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Antoine Levy-Lambert" <anto...@antbuild.com>
Subject Re: cvs commit: ant/src/testcases/org/apache/tools/mail MailMessageTest.java
Date Thu, 21 Aug 2003 19:12:42 GMT
Isn't there a danger in using a non-synchronized class ?
Otherwise I can gladly switch to ArrayList.
Antoine
----- Original Message -----
From: "Dominique Devienne" <DDevienne@lgc.com>
To: "'Ant Developers List'" <dev@ant.apache.org>
Sent: Thursday, August 21, 2003 8:40 PM
Subject: RE: cvs commit: ant/src/testcases/org/apache/tools/mail
MailMessageTest.java


> Allows you to use any List implementation (Vector, ArrayList, LinkedList)
> first of all, and thus use a non-synchronized list implementation like
> ArrayList. Vector is just a JDK 1.1'ism to me...
>
> We must keep Vector anywhere it appears in the API of a class, but
anywhere
> else we should prefer Java2 Collections IMO. --DD
>
> > -----Original Message-----
> > From: Antoine Levy-Lambert [mailto:antoine@antbuild.com]
> > Sent: Thursday, August 21, 2003 1:21 PM
> > To: Ant Developers List
> > Subject: Re: cvs commit: ant/src/testcases/org/apache/tools/mail
> > MailMessageTest.java
> >
> > What is the advantage of List compared to Vector ?
> > Antoine
> > ----- Original Message -----
> > From: "Dominique Devienne" <DDevienne@lgc.com>
> > To: "'Ant Developers List'" <dev@ant.apache.org>
> > Sent: Thursday, August 21, 2003 6:46 PM
> > Subject: RE: cvs commit: ant/src/testcases/org/apache/tools/mail
> > MailMessageTest.java
> >
> >
> > > Too bad you can't use LinkedHashMap.
> > >
> > > OTOH, you could use List instead of Vector, now that Java 1.2 is OK...
> > >
> > > --DD
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
> For additional commands, e-mail: dev-help@ant.apache.org
>
>



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message