diff --git a/codeql-custom-queries-java/example.ql b/codeql-custom-queries-java/example.ql index f8908a3..2631f65 100644 --- a/codeql-custom-queries-java/example.ql +++ b/codeql-custom-queries-java/example.ql @@ -6,7 +6,7 @@ */ import java - -from Block b + +from BlockStmt b where b.getNumStmt() = 0 -select b, "This is an empty block." \ No newline at end of file +select b, "This is an empty block." diff --git a/codeql-custom-queries-javascript/example.ql b/codeql-custom-queries-javascript/example.ql index f4e1378..0c23313 100644 --- a/codeql-custom-queries-javascript/example.ql +++ b/codeql-custom-queries-javascript/example.ql @@ -6,7 +6,7 @@ */ import javascript - -from Block b + +from BlockStmt b where b.getNumStmt() = 0 -select b, "This is an empty block." \ No newline at end of file +select b, "This is an empty block."