Skip to content

Commit a18d30f

Browse files
Kevin222004rdiachenko
authored andcommitted
Issue #13501: Kill mutation for JavadocStyleCheck2
1 parent 0dba32b commit a18d30f

File tree

3 files changed

+32
-8
lines changed

3 files changed

+32
-8
lines changed

config/pitest-suppressions/pitest-javadoc-suppressions.xml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -369,14 +369,14 @@
369369
<lineContent>index += 2;</lineContent>
370370
</mutation>
371371

372-
<mutation unstable="false">
373-
<sourceFile>JavadocStyleCheck.java</sourceFile>
374-
<mutatedClass>com.puppycrawl.tools.checkstyle.checks.javadoc.JavadocStyleCheck</mutatedClass>
375-
<mutatedMethod>getCommentText</mutatedMethod>
376-
<mutator>org.pitest.mutationtest.engine.gregor.mutators.experimental.NakedReceiverMutator</mutator>
377-
<description>replaced call to java/lang/String::trim with receiver</description>
378-
<lineContent>return builder.toString().trim();</lineContent>
379-
</mutation>
372+
373+
374+
375+
376+
377+
378+
379+
380380

381381

382382

src/test/java/com/puppycrawl/tools/checkstyle/checks/javadoc/JavadocStyleCheckTest.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -781,4 +781,14 @@ public void testJavadocStyleCheck3() throws Exception {
781781
getPath("InputJavadocStyleCheck3.java"),
782782
expected);
783783
}
784+
785+
@Test
786+
public void testJavadocStyleCheck4() throws Exception {
787+
final String[] expected = {
788+
"12: " + getCheckMessage(MSG_NO_PERIOD),
789+
};
790+
verifyWithInlineConfigParser(
791+
getPath("InputJavadocStyleCheck5.java"),
792+
expected);
793+
}
784794
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
/*
2+
JavadocStyle
3+
endOfSentenceFormat = \n
4+
5+
6+
*/
7+
8+
package com.puppycrawl.tools.checkstyle.checks.javadoc.javadocstyle;
9+
10+
public class InputJavadocStyleCheck5 {
11+
12+
/** Set of all class field names. */
13+
public String field; // violation above 'First sentence should end with a period'
14+
}

0 commit comments

Comments
 (0)