CodeQL library for Java/Kotlin
codeql/java-all 0.9.0 (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)