harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mikhail Fursov" <mike.fur...@gmail.com>
Subject Re: [classlib] Recognizing lock objects
Date Wed, 04 Oct 2006 10:08:59 GMT
Another variant is to use anonymous class without the name:
    Object lock = new Object(){};

But the name by itself (RepositionLock) serves like a comment.


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


-- 
Mikhail Fursov

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message