mirror of
https://github.com/github/codeql.git
synced 2025-12-17 01:03:14 +01:00
923 B
923 B
category
| category |
|---|
| deprecated |
- The predicate
Annotation.getAValue()has been deprecated because it might lead to obtaining the value of the wrong annotation element by accident.getValue(string)(or one of the value type specific predicates) should be used to explicitly specify the name of the annotation element. - The predicate
Annotation.getAValue(string)has been renamed togetAnArrayValue(string). - The predicate
SuppressWarningsAnnotation.getASuppressedWarningLiteral()has been deprecated because it unnecessarily restricts the result type;getASuppressedWarning()should be used instead. - The predicates
TargetAnnotation.getATargetExpression()andRetentionAnnotation.getRetentionPolicyExpression()have been deprecated because getting the enum constant read expression is rarely useful, instead the corresponding predicates for getting the name of the referenced enum constants should be used.