|
460 | 460 | <lineContent>header = config.getProperty(HEADER_PROPERTY);</lineContent> |
461 | 461 | </mutation> |
462 | 462 |
|
| 463 | + <mutation unstable="false"> |
| 464 | + <sourceFile>Header.java</sourceFile> |
| 465 | + <mutatedClass>org.checkstyle.autofix.recipe.Header</mutatedClass> |
| 466 | + <mutatedMethod>extractLicenseHeader</mutatedMethod> |
| 467 | + <mutator>org.pitest.mutationtest.engine.gregor.mutators.experimental.ArgumentPropagationMutator</mutator> |
| 468 | + <description>replaced call to org/checkstyle/autofix/recipe/Header::toLfLineEnding with argument</description> |
| 469 | + <lineContent>header = toLfLineEnding(Files.readString(Path.of(headerFilePath), charsetToUse));</lineContent> |
| 470 | + </mutation> |
| 471 | + |
463 | 472 | <mutation unstable="false"> |
464 | 473 | <sourceFile>Header.java</sourceFile> |
465 | 474 | <mutatedClass>org.checkstyle.autofix.recipe.Header</mutatedClass> |
|
487 | 496 | <lineContent>return "Adds headers to Java source files when missing.";</lineContent> |
488 | 497 | </mutation> |
489 | 498 |
|
| 499 | + <mutation unstable="false"> |
| 500 | + <sourceFile>Header.java</sourceFile> |
| 501 | + <mutatedClass>org.checkstyle.autofix.recipe.Header</mutatedClass> |
| 502 | + <mutatedMethod>toLfLineEnding</mutatedMethod> |
| 503 | + <mutator>org.pitest.mutationtest.engine.gregor.mutators.experimental.NakedReceiverMutator</mutator> |
| 504 | + <description>replaced call to java/lang/String::replaceAll with receiver</description> |
| 505 | + <lineContent>return text.replaceAll("(?x)\\\\r(?=\\\\n)|\\r(?=\\n)", "");</lineContent> |
| 506 | + </mutation> |
| 507 | + |
490 | 508 | <mutation unstable="false"> |
491 | 509 | <sourceFile>Header.java</sourceFile> |
492 | 510 | <mutatedClass>org.checkstyle.autofix.recipe.Header</mutatedClass> |
|
505 | 523 | <lineContent>return violations.removeIf(violation -> {</lineContent> |
506 | 524 | </mutation> |
507 | 525 |
|
| 526 | + <mutation unstable="false"> |
| 527 | + <sourceFile>Header.java</sourceFile> |
| 528 | + <mutatedClass>org.checkstyle.autofix.recipe.Header$HeaderVisitor</mutatedClass> |
| 529 | + <mutatedMethod>lambda$extractCurrentHeader$0</mutatedMethod> |
| 530 | + <mutator>org.pitest.mutationtest.engine.gregor.mutators.experimental.ArgumentPropagationMutator</mutator> |
| 531 | + <description>replaced call to org/checkstyle/autofix/recipe/Header::toLfLineEnding with argument</description> |
| 532 | + <lineContent>+ toLfLineEnding(comment.getSuffix());</lineContent> |
| 533 | + </mutation> |
| 534 | + |
508 | 535 | <mutation unstable="false"> |
509 | 536 | <sourceFile>Header.java</sourceFile> |
510 | 537 | <mutatedClass>org.checkstyle.autofix.recipe.Header$HeaderVisitor</mutatedClass> |
511 | 538 | <mutatedMethod>lambda$extractCurrentHeader$0</mutatedMethod> |
512 | 539 | <mutator>org.pitest.mutationtest.engine.gregor.mutators.NonVoidMethodCallMutator</mutator> |
513 | 540 | <description>removed call to org/checkstyle/autofix/recipe/Header$HeaderVisitor::getCursor</description> |
514 | | - <lineContent>return comment.printComment(getCursor()) + comment.getSuffix();</lineContent> |
| 541 | + <lineContent>return comment.printComment(getCursor())</lineContent> |
515 | 542 | </mutation> |
516 | 543 |
|
517 | 544 | <mutation unstable="false"> |
|
1303 | 1330 | <mutatedMethod>parseErrorTag</mutatedMethod> |
1304 | 1331 | <mutator>org.pitest.mutationtest.engine.gregor.mutators.NonVoidMethodCallMutator</mutator> |
1305 | 1332 | <description>removed call to java/util/Optional::empty</description> |
1306 | | - <lineContent>Optional<CheckstyleCheck> source = Optional.empty();</lineContent> |
| 1333 | + <lineContent>Optional<CheckstyleCheck> check = Optional.empty();</lineContent> |
1307 | 1334 | </mutation> |
1308 | 1335 |
|
1309 | 1336 | <mutation unstable="false"> |
|
1312 | 1339 | <mutatedMethod>parseErrorTag</mutatedMethod> |
1313 | 1340 | <mutator>org.pitest.mutationtest.engine.gregor.mutators.RemoveConditionalMutator_EQUAL_IF</mutator> |
1314 | 1341 | <description>removed conditional - replaced equality check with true</description> |
1315 | | - <lineContent>if (source.isPresent()) {</lineContent> |
| 1342 | + <lineContent>if (check.isPresent()) {</lineContent> |
1316 | 1343 | </mutation> |
1317 | 1344 |
|
1318 | 1345 | <mutation unstable="false"> |
|
0 commit comments