Skip to content

Commit

Permalink
Issue checkstyle#13999: Resolve pitest suppression for parseTags() me…
Browse files Browse the repository at this point in the history
…thod of TagParser
  • Loading branch information
suniti0804 authored and nrmancuso committed Dec 27, 2023
1 parent 92e5e1e commit bd082c4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
9 changes: 0 additions & 9 deletions config/pitest-suppressions/pitest-javadoc-suppressions.xml
Original file line number Diff line number Diff line change
Expand Up @@ -333,15 +333,6 @@
<lineContent>if (incompleteTag) {</lineContent>
</mutation>

<mutation unstable="false">
<sourceFile>TagParser.java</sourceFile>
<mutatedClass>com.puppycrawl.tools.checkstyle.checks.javadoc.TagParser</mutatedClass>
<mutatedMethod>parseTags</mutatedMethod>
<mutator>org.pitest.mutationtest.engine.gregor.mutators.experimental.ArgumentPropagationMutator</mutator>
<description>replaced call to com/puppycrawl/tools/checkstyle/checks/javadoc/TagParser::findChar with argument</description>
<lineContent>Point position = findChar(text, &apos;&lt;&apos;, new Point(0, 0));</lineContent>
</mutation>

<mutation unstable="false">
<sourceFile>TagParser.java</sourceFile>
<mutatedClass>com.puppycrawl.tools.checkstyle.checks.javadoc.TagParser</mutatedClass>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ private void add(HtmlTag tag) {
*/
private void parseTags(String[] text, int lineNo) {
final int nLines = text.length;
Point position = findChar(text, '<', new Point(0, 0));
Point position = new Point(0, 0);
while (position.getLineNo() < nLines) {
// if this is html comment then skip it
if (isCommentTag(text, position)) {
Expand Down

0 comments on commit bd082c4

Please sign in to comment.