Java: Rename Block -> BlockStmt

This commit is contained in:
Jonas Jensen
2020-09-08 08:19:18 +02:00
parent ab90f06ddf
commit 464d3630a2
25 changed files with 95 additions and 68 deletions

View File

@@ -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.