CodeQL library for Java
codeql/java-all 0.3.2 (changelog, source)
Search

Predicate locallySynchronizedOnClass

Holds if e is synchronized by a synchronized modifier on the enclosing (static) method.

Import path

import semmle.code.java.Concurrency
predicate locallySynchronizedOnClass(Expr e, RefType classType)