Skip to content

Issue #13109: Kill mutation for UnnecessaryParenthesesCheck 2#13137

Merged
romani merged 1 commit intocheckstyle:masterfrom
Kevin222004:u2
Jun 7, 2023
Merged

Issue #13109: Kill mutation for UnnecessaryParenthesesCheck 2#13137
romani merged 1 commit intocheckstyle:masterfrom
Kevin222004:u2

Conversation

@Kevin222004
Copy link
Copy Markdown
Contributor

@Kevin222004 Kevin222004 commented Jun 2, 2023

Issue #13109: Kill mutation for UnnecessaryParenthesesCheck 2

check :- https://checkstyle.org/config_coding.html#UnnecessaryParentheses


Mutation covered

<mutation unstable="false">
<sourceFile>UnnecessaryParenthesesCheck.java</sourceFile>
<mutatedClass>com.puppycrawl.tools.checkstyle.checks.coding.UnnecessaryParenthesesCheck</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>log(ast, MSG_LAMBDA, ast.getText());</lineContent>
</mutation>


Explaination

ast.gettext() is not require because we are not showing it.

unnecessary.paren.lambda=Unnecessary parentheses around lambda value.

@Kevin222004
Copy link
Copy Markdown
Contributor Author

Github, generate report

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Jun 3, 2023

@Kevin222004
Copy link
Copy Markdown
Contributor Author

Github, generate report

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Jun 3, 2023

@Kevin222004 Kevin222004 marked this pull request as ready for review June 5, 2023 17:53
Copy link
Copy Markdown
Member

@romani romani left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch by pitest

Copy link
Copy Markdown
Member

@rdiachenko rdiachenko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

Copy link
Copy Markdown
Member

@Vyom-Yadav Vyom-Yadav left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@Vyom-Yadav Vyom-Yadav assigned romani and unassigned Vyom-Yadav Jun 7, 2023
@romani romani merged commit 63cd22d into checkstyle:master Jun 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants