Skip to content

Commit ac83ac5

Browse files
committed
Fix CodeQL query warnings and errors
non-javadoc-block-comment.ql now uses raw HTML in the QLDoc. The Query Console seems to support it, but the VSCode extension does not, see github/vscode-codeql#794. Could also omit the closing `*/` from the QLDoc in the future, if necessary.
1 parent abb7f40 commit ac83ac5

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

codeql-custom-queries-java/queries/javadoc/non-javadoc-block-comment.ql

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
2-
* Finds regular block comments (`/* ... */`) which appear to be meant to
3-
* be javadoc comments (`/** ... */`).
2+
* Finds regular block comments (<code>/* ... &ast;/</code>) which appear to be meant to
3+
* be javadoc comments (<code>/** ... &ast;/</code>).
44
*
55
* Note that this (on purpose) matches comments which start with `/* (non-Javadoc)`.
66
* These comments are generated by some IDEs and add little value since IDEs usually

codeql-custom-queries-java/queries/unit-tests/test-not-failing-on-missing-exception.ql

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ predicate isFailMethodCall(MethodAccess call, Method m) {
5959
)
6060
}
6161

62-
predicate isFailing(Block tryBlock) {
62+
predicate isFailing(BlockStmt tryBlock) {
6363
exists(MethodAccess failCall, ExprStmt failCallStmt |
6464
isFailMethodCall(failCall, failCall.getMethod())
6565
and failCall.getEnclosingStmt() = failCallStmt

0 commit comments

Comments
 (0)