begin sebb quotation:
> It didn't work when I tried it last. Admittedly that was a few months
> ago, and there has just been a new release. But I just tried again
> with the following code:
> 
> import net.jcip.annotations.GuardedBy;
> public class GuardedByTest {
>      @GuardedBy("this")
>      public int count;
>      public synchronized void incCount(){
>          count++;
>      }
>      public int getCount(){
>          return count;
>      }
> }
> 
> Which I would have expected to report some problems. I even tried
> @GuardedBy("that") which IMO should also have triggered a warning.
> 
> This was using the Eclipse plugin, 1.3.8.20090315.
> 
> But perhaps I've missed something.

I agree this should trigger a warning. I've forwarded your message to
the Findbugs folks to find out what the deal is.

-md

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to