Skip to content

Commit

Permalink
Issue #12615: removes unnecessary code for EmptyBlock
Browse files Browse the repository at this point in the history
  • Loading branch information
rnveach authored and romani committed Jan 11, 2023
1 parent affd2bd commit 8bfa87c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 11 deletions.
9 changes: 0 additions & 9 deletions config/pitest-suppressions/pitest-blocks-suppressions.xml
Original file line number Diff line number Diff line change
@@ -1,14 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<suppressedMutations>
<mutation unstable="false">
<sourceFile>EmptyBlockCheck.java</sourceFile>
<mutatedClass>com.puppycrawl.tools.checkstyle.checks.blocks.EmptyBlockCheck</mutatedClass>
<mutatedMethod>visitToken</mutatedMethod>
<mutator>org.pitest.mutationtest.engine.gregor.mutators.NonVoidMethodCallMutator</mutator>
<description>removed call to com/puppycrawl/tools/checkstyle/api/DetailAST::getText</description>
<lineContent>ast.getText());</lineContent>
</mutation>

<mutation unstable="false">
<sourceFile>RightCurlyCheck.java</sourceFile>
<mutatedClass>com.puppycrawl.tools.checkstyle.checks.blocks.RightCurlyCheck</mutatedClass>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -260,8 +260,7 @@ public void visitToken(DetailAST ast) {
}
if (emptyBlock) {
log(leftCurly,
MSG_KEY_BLOCK_NO_STATEMENT,
ast.getText());
MSG_KEY_BLOCK_NO_STATEMENT);
}
}
else if (!hasText(leftCurly)) {
Expand Down

0 comments on commit 8bfa87c

Please sign in to comment.