Skip to content

Commit aacd217

Browse files
Kevin222004romani
authored andcommitted
Issue #13109: Kill mutation for NestedIfDepthCheck
1 parent 15cef16 commit aacd217

File tree

2 files changed

+0
-14
lines changed

2 files changed

+0
-14
lines changed

config/pitest-suppressions/pitest-coding-2-suppressions.xml

-9
Original file line numberDiff line numberDiff line change
@@ -81,15 +81,6 @@
8181
<lineContent>final DetailAST firstNextNode = CheckUtil.getFirstNode(nextNode);</lineContent>
8282
</mutation>
8383

84-
<mutation unstable="false">
85-
<sourceFile>NestedIfDepthCheck.java</sourceFile>
86-
<mutatedClass>com.puppycrawl.tools.checkstyle.checks.coding.NestedIfDepthCheck</mutatedClass>
87-
<mutatedMethod>beginTree</mutatedMethod>
88-
<mutator>org.pitest.mutationtest.engine.gregor.mutators.experimental.MemberVariableMutator</mutator>
89-
<description>Removed assignment to member variable depth</description>
90-
<lineContent>depth = 0;</lineContent>
91-
</mutation>
92-
9384
<mutation unstable="false">
9485
<sourceFile>OneStatementPerLineCheck.java</sourceFile>
9586
<mutatedClass>com.puppycrawl.tools.checkstyle.checks.coding.OneStatementPerLineCheck</mutatedClass>

src/main/java/com/puppycrawl/tools/checkstyle/checks/coding/NestedIfDepthCheck.java

-5
Original file line numberDiff line numberDiff line change
@@ -144,11 +144,6 @@ public int[] getRequiredTokens() {
144144
return new int[] {TokenTypes.LITERAL_IF};
145145
}
146146

147-
@Override
148-
public void beginTree(DetailAST rootAST) {
149-
depth = 0;
150-
}
151-
152147
@Override
153148
public void visitToken(DetailAST literalIf) {
154149
if (!CheckUtil.isElseIf(literalIf)) {

0 commit comments

Comments
 (0)