james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefano Bagnara <apa...@bago.org>
Subject Re: svn commit: r492550 - /james/server/trunk/src/java/org/apache/james/mailrepository/MBoxMailRepository.java
Date Thu, 04 Jan 2007 13:44:12 GMT
norman@apache.org wrote:
> Fix class CastException, fix comment and replace a Vector with ArrayList. See JAMES-721
> [..]
>          ArrayList keys = new ArrayList();
> -        keys.add(key);
> +        keys.add(retrieve(key));

Retrieving messages will slow down things.

Maybe the best thing is to create a loop and call remove for each single 
String key instead of creating an ArrayList and calling the single 
remove method.

Stefano


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


Mime
View raw message