harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tim Ellison <t.p.elli...@gmail.com>
Subject Re: [classlib] Recognizing lock objects
Date Wed, 04 Oct 2006 11:29:49 GMT
Mikhail Fursov wrote:
> Another variant is to use anonymous class without the name:
>    Object lock = new Object(){};
> 
> But the name by itself (RepositionLock) serves like a comment.

Yep -- I'm inclined to keep the meaningful name.

Reagrds,
Tim


> On 10/3/06, Tim Ellison <t.p.ellison@gmail.com> wrote:
>>
>>     private class RepositionLock {}
>>     private Object repositionLock = new RepositionLock();
>>
>>
> 
> 

-- 

Tim Ellison (t.p.ellison@gmail.com)
IBM Java technology centre, UK.

---------------------------------------------------------------------
Terms of use : http://incubator.apache.org/harmony/mailing.html
To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
For additional commands, e-mail: harmony-dev-help@incubator.apache.org


Mime
View raw message