mirror of
https://github.com/github/codeql.git
synced 2025-12-17 01:03:14 +01:00
1.2 KiB
1.2 KiB
category
| category |
|---|
| feature |
- The predicates of the CodeQL class
Annotationhave been improved:- Convenience value type specific predicates have been added, such as
getEnumConstantValue(string)orgetStringValue(string). - Convenience predicates for elements with array values have been added, such as
getAnEnumConstantArrayValue(string). While the behavior of the existing predicates has not changed, usage of them should be reviewed (or replaced with the newly added predicate) to make sure they work correctly for elements with array values. - Some internal CodeQL usage of the
Annotationpredicates has been adjusted and corrected; this might affect the results of some queries.
- Convenience value type specific predicates have been added, such as
- New predicates have been added to the CodeQL class
Annotatableto support getting declared and associated annotations. As part of that,hasAnnotation()has been changed to also consider inherited annotations, to be consistent withhasAnnotation(string, string)andgetAnAnnotation(). The newly added predicatehasDeclaredAnnotation()can be used as replacement for the old functionality. - New predicates have been added to the CodeQL class
AnnotationTypeto simplify getting information about usage of JDK meta-annotations, such as@Retention.