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

Module ConflictingAccess

Provides classes and predicates for detecting conflicting accesses in the sense of the Java Memory Model.

Import path

import semmle.code.java.ConflictingAccess

Imports

Concurrency
java

Provides all default Java QL imports.

Predicates

initialValue

Gets the initial value for the field f. This is either a field initializer or an assignment in a constructor.

isThreadSafeType

Holds if the type t is thread-safe.

Classes

ClassAnnotatedAsThreadSafe

A class annotated as @ThreadSafe. Provides predicates to check for concurrency issues.

ExposedField

A field that is exposed to potential data races. We require the field to be in a class that is annotated as @ThreadSafe.

ExposedFieldAccess

A field access that is exposed to potential data races. We require the field to be in a class that is annotated as @ThreadSafe.

Modules

Modification

Provides predicates, chiefly isModifying, to check if a given expression modifies a shared resource.