From dcc4fb538894e1c73cb38d2f4e51d854c50b5035 Mon Sep 17 00:00:00 2001 From: Andrew Eisenberg Date: Sat, 31 Oct 2020 10:46:27 -0700 Subject: [PATCH] Avoid deprecations in examples --- codeql-custom-queries-java/example.ql | 6 +++--- codeql-custom-queries-javascript/example.ql | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) 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."