jbushmaster007 / jsr-305

Automatically exported from code.google.com/p/jsr-305
1 stars 0 forks source link

A contrary for GuardedBy #26

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
A new annotation would be nice to mark a piece of code for deadlock problems.

example:

@NeverBy("this")
Object canCauseDeadlock = ...

...
synchronized (this) {
   canCauseDealock...   // <-- Warning
}

https://github.com/google/error-prone/issues/366

Original issue reported on code.google.com by andr...@mager.eu on 25 Sep 2015 at 11:20