Class LockNotBeforeTry

java.lang.Object
com.google.errorprone.bugpatterns.BugChecker
com.google.errorprone.bugpatterns.LockNotBeforeTry
All Implemented Interfaces:
BugChecker.MethodInvocationTreeMatcher, Suppressible, Serializable

public final class LockNotBeforeTry extends BugChecker implements BugChecker.MethodInvocationTreeMatcher
Suggests that calls to Lock.lock must be immediately followed by a try-finally that calls Lock.unlock.
Author:
ghm@google.com (Graeme Morgan)
See Also: