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

Predicate hasInjectAnnotation

Holds if an injection annotation, such as @Autowired or @Inject, is present on this particular annotatable element.

Import path

import semmle.code.java.frameworks.spring.SpringAutowire
predicate hasInjectAnnotation(Annotatable a)