Yes, I didn't realize that remove returns an object I asumed that it returns
true or false. Congrats for the optimization.
Thanks.
Cheers
Zacarias Monzon.
On 10/26/07, Guillaume Nodet <[EMAIL PROTECTED]> wrote:
>
> Why not using:
>
>exchange = exchanges.remove(exchange.getExchangeId());
>
> i
Why not using:
exchange = exchanges.remove(exchange.getExchangeId());
instead of
exchange = exchanges.get(exchange.getExchangeId());
exchanges.remove(exchange.getExchangeId());
It should be the same but in an atomic call.
On 10/26/07, Zacarias <[EMAIL