Files
codeql/java/ql/consistency-queries/UnaryExpr.ql
2026-02-04 10:50:49 +01:00

9 lines
141 B
Plaintext

import java
from UnaryExpr ue
where
not exists(ue.getOperand())
or
exists(Expr e, int i | e.isNthChildOf(ue, i) and i != 0)
select ue