Files
codeql/java/ql/consistency-queries/expressions.ql
Ian Lynagh 15be80631f Java: Add a consistency test for expressions
They should have exactly 1 Type.
2022-05-10 18:45:52 +01:00

10 lines
152 B
Plaintext

import java
from Expr e, int n
where n = count(e.getType())
and n != 1
// Java #144
and not e instanceof ReflectiveAccessAnnotation
select e, n