Skip to content

Commit

Permalink
Issue checkstyle#12282: Resolve Pitest suppression for ParenPad
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin222004 committed Oct 21, 2022
1 parent ad27aa0 commit ae5b248
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
9 changes: 0 additions & 9 deletions .ci/pitest-suppressions/pitest-whitespace-suppressions.xml
Expand Up @@ -81,15 +81,6 @@
<lineContent>processLeft(ast.findFirstToken(TokenTypes.LPAREN));</lineContent>
</mutation>

<mutation unstable="false">
<sourceFile>ParenPadCheck.java</sourceFile>
<mutatedClass>com.puppycrawl.tools.checkstyle.checks.whitespace.ParenPadCheck</mutatedClass>
<mutatedMethod>visitToken</mutatedMethod>
<mutator>org.pitest.mutationtest.engine.gregor.mutators.experimental.RemoveSwitchMutator_3</mutator>
<description>RemoveSwitch 3 mutation</description>
<lineContent>switch (ast.getType()) {</lineContent>
</mutation>

<mutation unstable="false">
<sourceFile>ParenPadCheck.java</sourceFile>
<mutatedClass>com.puppycrawl.tools.checkstyle.checks.whitespace.ParenPadCheck</mutatedClass>
Expand Down
Expand Up @@ -254,7 +254,6 @@ public void visitToken(DetailAST ast) {
break;
case TokenTypes.DOT:
case TokenTypes.EXPR:
case TokenTypes.QUESTION:
processExpression(ast);
break;
case TokenTypes.LITERAL_FOR:
Expand All @@ -270,6 +269,7 @@ public void visitToken(DetailAST ast) {
case TokenTypes.RESOURCE_SPECIFICATION:
visitResourceSpecification(ast);
break;
case TokenTypes.QUESTION:
default:
processLeft(ast.findFirstToken(TokenTypes.LPAREN));
processRight(ast.findFirstToken(TokenTypes.RPAREN));
Expand Down

0 comments on commit ae5b248

Please sign in to comment.