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

Module DeadField

Import path

import semmle.code.java.deadcode.DeadField

Imports

DeadCode
JAXB

Definitions related to JAXB.

JacksonSerializability

Provides classes and predicates for working with Java Serialization in the context of the com.fasterxml.jackson JSON processing framework.

Persistence

Provides classes and predicates for working with the JavaEE Persistence API.

java

Provides all default Java QL imports.

Classes

ClassReflectivelyReadField

A field that is reflectively read via a call to Class.getField(...).

DeadField

A field is dead if it is never read by a live callable and it is neither reflectively accessed, nor whitelisted.

JUnitAnnotatedField

A field with an annotation which implies that it will be read by JUnit when running tests within this class.

JacksonMixinReflextivelyReadField

A field that is used when applying Jackson mixins.

JacksonSerializableReflectivelyReadField

Consider all JacksonSerializableFields as reflectively read.

JpaReadField

A field which is read by a JPA compatible Java persistence framework.

LiveField

A field is live if it is read by a live callable, accessed by an annotation on a live element, reflectively read, or whitelisted as read.

LiveJaxbBoundField

A field is read by the JAXB during serialization if it is a JAXB bound field, and if the containing class is considered “live”.

ReflectivelyReadField

A field that may be read reflectively.

SerialVersionUidField

A static, final, long field named serialVersionUID in a class that extends Serializable acts as a version number for the serialization framework.

SourceField

A field that is from a source file.

WhitelistedLiveField

A field which is dead, but should be considered as live.