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

Predicate referencedInXmlFile

Holds if a field’s name and declaring type are referenced in an XML file. Usually, this implies that the field may be accessed reflectively.

Import path

import semmle.code.java.Reflection
predicate referencedInXmlFile(Field f)