Skip to content

Commit d4025b2

Browse files
AmitKumarDeoghoriaromani
authored andcommitted
Issue #13999: Resolve pitest suppression for skipHtmlComment() method for TagParser
1 parent e1dc3ab commit d4025b2

2 files changed

Lines changed: 1 addition & 10 deletions

File tree

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

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -98,13 +98,4 @@
9898
<description>removed conditional - replaced equality check with true</description>
9999
<lineContent>return astType == TokenTypes.VARIABLE_DEF</lineContent>
100100
</mutation>
101-
102-
<mutation unstable="false">
103-
<sourceFile>TagParser.java</sourceFile>
104-
<mutatedClass>com.puppycrawl.tools.checkstyle.checks.javadoc.TagParser</mutatedClass>
105-
<mutatedMethod>skipHtmlComment</mutatedMethod>
106-
<mutator>org.pitest.mutationtest.engine.gregor.mutators.experimental.ArgumentPropagationMutator</mutator>
107-
<description>replaced call to com/puppycrawl/tools/checkstyle/checks/javadoc/TagParser::findChar with argument</description>
108-
<lineContent>toPoint = findChar(text, &apos;&gt;&apos;, getNextPoint(text, toPoint));</lineContent>
109-
</mutation>
110101
</suppressedMutations>

src/main/java/com/puppycrawl/tools/checkstyle/checks/javadoc/TagParser.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ private static Point skipHtmlComment(String[] text, Point fromPoint) {
214214
Point toPoint = fromPoint;
215215
while (toPoint.getLineNo() < text.length && !text[toPoint.getLineNo()]
216216
.substring(0, toPoint.getColumnNo() + 1).endsWith("-->")) {
217-
toPoint = findChar(text, '>', getNextPoint(text, toPoint));
217+
toPoint = getNextPoint(text, toPoint);
218218
}
219219
return toPoint;
220220
}

0 commit comments

Comments
 (0)