Class HeldLockAnalyzer

java.lang.Object
com.google.errorprone.bugpatterns.threadsafety.HeldLockAnalyzer

public final class HeldLockAnalyzer
extends Object
A method body analyzer. Responsible for tracking the set of held locks, and checking accesses to guarded members.
Author:
cushon@google.com (Liam Miller-Cushon)
  • Method Details

    • analyze

      public static void analyze​(VisitorState state, HeldLockAnalyzer.LockEventListener listener, com.google.common.base.Predicate<com.sun.source.tree.Tree> isSuppressed, GuardedByFlags flags)
      Analyzes a method body, tracking the set of held locks and checking accesses to guarded members.