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

Predicate locallySynchronizedOnClass

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

Import path

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