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 <[EMAIL PROTECTED]> wrote:
>>
>> private class RepositionLock {}
>> private Object repositionLock = new RepositionLock();
>>
>>
>
>
--
Tim Ellison ([EMAIL PROTECTED])
IBM Java technology centre, UK.
---------------------------------------------------------------------
Terms of use : http://incubator.apache.org/harmony/mailing.html
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]