Skip to content

Commit

Permalink
refactor: use the more general type
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderSchultheiss committed Feb 21, 2024
1 parent 569f663 commit 387c78f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package org.variantsync.diffdetective.datasets;

import org.variantsync.diffdetective.feature.PreprocessorAnnotationParser;
import org.variantsync.diffdetective.feature.AnnotationParser;
import org.variantsync.diffdetective.variation.diff.parse.VariationDiffParseOptions;

/**
Expand All @@ -27,7 +27,7 @@ public enum DiffStoragePolicy {
/**
* Creates PatchDiffParseOptions with the given annotation parser.
*/
public PatchDiffParseOptions withAnnotationParser(PreprocessorAnnotationParser annotationParser) {
public PatchDiffParseOptions withAnnotationParser(AnnotationParser annotationParser) {
return new PatchDiffParseOptions(
this.diffStoragePolicy(),
this.variationDiffParseOptions().withAnnotationParser(annotationParser)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
/**
* Parse options that should be used when parsing {@link org.variantsync.diffdetective.variation.diff.VariationDiff}s.
*
* @param annotationParser A parser for parsing c preprocessor annotations.
* @param annotationParser A parser for parsing annotations.
* @param collapseMultipleCodeLines Whether multiple consecutive code lines with the same diff
* type should be collapsed into a single artifact node.
* @param ignoreEmptyLines Whether to add {@code DiffNode}s for empty lines (regardless of their {@code DiffType}).
Expand Down Expand Up @@ -37,7 +37,7 @@ public VariationDiffParseOptions(
/**
* Creates VariationDiffParseOptions with the given annotation parser.
*/
public VariationDiffParseOptions withAnnotationParser(PreprocessorAnnotationParser annotationParser) {
public VariationDiffParseOptions withAnnotationParser(AnnotationParser annotationParser) {
return new VariationDiffParseOptions(
annotationParser,
this.collapseMultipleCodeLines(),
Expand Down

0 comments on commit 387c78f

Please sign in to comment.