mirror of
https://github.com/github/codeql.git
synced 2026-04-25 16:55:19 +02:00
simplify expressions that could be type-casts
This commit is contained in:
@@ -60,7 +60,7 @@ predicate exception(EnumConstant e) {
|
||||
)
|
||||
or
|
||||
// Entire `Enum` annotated with reflective annotation.
|
||||
exists(ReflectiveAccessAnnotation ann | ann = t.getAnAnnotation())
|
||||
t.getAnAnnotation() instanceof ReflectiveAccessAnnotation
|
||||
)
|
||||
or
|
||||
// Enum field annotated with reflective annotation.
|
||||
|
||||
Reference in New Issue
Block a user