mirror of
https://github.com/github/codeql.git
synced 2026-04-26 01:05:15 +02:00
Java: Rename Block -> BlockStmt
This commit is contained in:
@@ -27,7 +27,7 @@ predicate oneLineStatement(Stmt s, File f, int line, int col) {
|
||||
col = l.getStartColumn()
|
||||
) and
|
||||
// Exclude blocks: `{break;}` is not really a violation.
|
||||
not s instanceof Block and
|
||||
not s instanceof BlockStmt and
|
||||
// Exclude implicit super constructor invocations.
|
||||
not s instanceof SuperConstructorInvocationStmt and
|
||||
// Java enums are desugared to a whole bunch of generated statements.
|
||||
|
||||
Reference in New Issue
Block a user