"Bordet, Simone" wrote:
> it should be:
> 
> public boolean isActive(Object id)
> {
>         // Check whether an object with the given id is available in the
> cache
>         boolean isActive;
>         synchronized (getCacheLock())
>         {
>                 isActive = getCache().peek(id) != null;
>         }
>         return isActive;
> }

True, but this check is so fragile anyway (regardless of how one does
it) that I think unsynched is ok. 

YMMV.

/Rickard

-- 
Rickard �berg

Email: [EMAIL PROTECTED]

Reply via email to