ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Steve Loughran <stev...@iseran.com>
Subject Re: cvs commit: ant/src/testcases/org/apache/tools/mail MailMessageTest.java
Date Thu, 21 Aug 2003 22:08:37 GMT
Martijn Kruithof wrote:
> Antoine Levy-Lambert wrote:
> 
>> Isn't there a danger in using a non-synchronized class ?
>> Otherwise I can gladly switch to ArrayList.
>> Antoine
> 
> 
> There are wrappers for that (Collections.synchronizedXXX(XXX xxx)
> XXX = Collection , List, Map, Set, SortedMap or SortedSet.
> So that should not be an issue. (That is, if synchronization is an issue)
> 

Sync is not usually an issue in Ant tasks, except for the parallel bits. 
The other issue w/ Vector is, like ArrayList, it is most efficient if 
you know how big the vector will be. If you dont know till you build the 
structure up, LinkedList can be more efficient


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


Mime
View raw message