Export to GitHub

jsr-305 - issue #26

A contrary for GuardedBy


Posted on Sep 25, 2015 by Quick Ox

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

Status: New

Labels:
Type-Defect Priority-Medium