mirror of
https://github.com/github/codeql.git
synced 2026-04-18 13:34:02 +02:00
Java: Fix training example
This commit is contained in:
@@ -3,10 +3,10 @@ import java
|
||||
class EmptyBlock extends Block {
|
||||
EmptyBlock() {
|
||||
this.getNumStmt() = 0
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
from IfStmt ifstmt
|
||||
where ifstmt.getThen() instanceof
|
||||
EmptyBlock
|
||||
select ifstmt
|
||||
select ifstmt
|
||||
|
||||
Reference in New Issue
Block a user