mirror of
https://github.com/github/codeql.git
synced 2026-04-12 10:34:02 +02:00
11 lines
364 B
Plaintext
11 lines
364 B
Plaintext
import java
|
|
import semmle.code.java.controlflow.Guards
|
|
import utils.test.BasicBlock
|
|
|
|
from Guard g, BasicBlock bb, GuardValue gv
|
|
where
|
|
g.valueControls(bb, gv) and
|
|
g.getEnclosingCallable().getDeclaringType().hasName("Logic") and
|
|
(exists(gv.asBooleanValue()) or gv.isThrowsException() or gv.getDualValue().isThrowsException())
|
|
select g, gv, getFirstAstNode(bb)
|