@@ -274,7 +274,7 @@ protected Optional<Node> filterTreeByIndirectChanges(final ChangeSet changes) {
274274
275275 /**
276276 * Returns all lines that have line or branch coverage counters. For mutation coverage reports (PIT, Stryker) the
277- * line counters are derived from the mutations, see {@link #addLineCoverageOfMutations()}.
277+ * line counters are derived from the mutations, see {@link CoverageParser #addLineCoverageOfMutations(FileNode )}.
278278 *
279279 * @return the lines with line or branch coverage
280280 */
@@ -350,7 +350,7 @@ public boolean hasCoveredAndModifiedLines(final ChangeSet changes) {
350350 * @return this instance
351351 */
352352 @ CanIgnoreReturnValue
353- public FileNode addCounters (final int lineNumber , final int covered , final int missed ) {
353+ FileNode addCounters (final int lineNumber , final int covered , final int missed ) {
354354 lineCounters .put (lineNumber , covered , missed );
355355
356356 return this ;
@@ -365,7 +365,7 @@ public FileNode addCounters(final int lineNumber, final int covered, final int m
365365 * @return this instance
366366 */
367367 @ CanIgnoreReturnValue
368- public FileNode addMcdcPairCounters (final int lineNumber , final int covered , final int missed ) {
368+ FileNode addMcdcPairCounters (final int lineNumber , final int covered , final int missed ) {
369369 mcdcPairCounters .put (lineNumber , covered , missed );
370370
371371 return this ;
@@ -380,7 +380,7 @@ public FileNode addMcdcPairCounters(final int lineNumber, final int covered, fin
380380 * @return this instance
381381 */
382382 @ CanIgnoreReturnValue
383- public FileNode addFunctionCallCounters (final int lineNumber , final int covered , final int missed ) {
383+ FileNode addFunctionCallCounters (final int lineNumber , final int covered , final int missed ) {
384384 functionCallCounters .put (lineNumber , covered , missed );
385385
386386 return this ;
@@ -539,7 +539,7 @@ private NavigableMap<Integer, List<Mutation>> createMapOfMutations(final Predica
539539 * <p>This method should be called by parsers of mutation coverage reports after all mutations of the file have been
540540 * added, so that the line based API (e.g., {@link #getLinesWithCoverage()}) works for mutation coverage as well.
541541 */
542- public void addLineCoverageOfMutations () {
542+ void addLineCoverageOfMutations () {
543543 var coveredLines = collectLinesOfMutations (Mutation ::isCovered );
544544 var missedLines = collectLinesOfMutations (Mutation ::isMissed );
545545 missedLines .removeAll (coveredLines );
@@ -581,12 +581,11 @@ public NavigableMap<Integer, Integer> getCounters() {
581581 }
582582
583583 /**
584- * Adds a mutation to the method .
584+ * Adds a mutation to this file. Parsers use {@link CoverageParser#addMutation(FileNode, Mutation)} .
585585 *
586586 * @param mutation the mutation to add
587587 */
588- // TODO: not part of API, only for tests?
589- public void addMutation (final Mutation mutation ) {
588+ void addMutation (final Mutation mutation ) {
590589 mutations .add (mutation );
591590 }
592591
0 commit comments