Skip to content

Commit c2be7fe

Browse files
committed
Avoid deprecations in examples
1 parent 868aeee commit c2be7fe

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

codeql-custom-queries-java/example.ql

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
*/
77

88
import java
9-
10-
from Block b
9+
10+
from BlockStmt b
1111
where b.getNumStmt() = 0
12-
select b, "This is an empty block."
12+
select b, "This is an empty block."

codeql-custom-queries-javascript/example.ql

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
*/
77

88
import javascript
9-
10-
from Block b
9+
10+
from BlockStmt b
1111
where b.getNumStmt() = 0
12-
select b, "This is an empty block."
12+
select b, "This is an empty block."

0 commit comments

Comments
 (0)