Skip to content

Commit 387c78f

Browse files
refactor: use the more general type
1 parent 569f663 commit 387c78f

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/main/java/org/variantsync/diffdetective/datasets/PatchDiffParseOptions.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package org.variantsync.diffdetective.datasets;
22

3-
import org.variantsync.diffdetective.feature.PreprocessorAnnotationParser;
3+
import org.variantsync.diffdetective.feature.AnnotationParser;
44
import org.variantsync.diffdetective.variation.diff.parse.VariationDiffParseOptions;
55

66
/**
@@ -27,7 +27,7 @@ public enum DiffStoragePolicy {
2727
/**
2828
* Creates PatchDiffParseOptions with the given annotation parser.
2929
*/
30-
public PatchDiffParseOptions withAnnotationParser(PreprocessorAnnotationParser annotationParser) {
30+
public PatchDiffParseOptions withAnnotationParser(AnnotationParser annotationParser) {
3131
return new PatchDiffParseOptions(
3232
this.diffStoragePolicy(),
3333
this.variationDiffParseOptions().withAnnotationParser(annotationParser)

src/main/java/org/variantsync/diffdetective/variation/diff/parse/VariationDiffParseOptions.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
/**
77
* Parse options that should be used when parsing {@link org.variantsync.diffdetective.variation.diff.VariationDiff}s.
88
*
9-
* @param annotationParser A parser for parsing c preprocessor annotations.
9+
* @param annotationParser A parser for parsing annotations.
1010
* @param collapseMultipleCodeLines Whether multiple consecutive code lines with the same diff
1111
* type should be collapsed into a single artifact node.
1212
* @param ignoreEmptyLines Whether to add {@code DiffNode}s for empty lines (regardless of their {@code DiffType}).
@@ -37,7 +37,7 @@ public VariationDiffParseOptions(
3737
/**
3838
* Creates VariationDiffParseOptions with the given annotation parser.
3939
*/
40-
public VariationDiffParseOptions withAnnotationParser(PreprocessorAnnotationParser annotationParser) {
40+
public VariationDiffParseOptions withAnnotationParser(AnnotationParser annotationParser) {
4141
return new VariationDiffParseOptions(
4242
annotationParser,
4343
this.collapseMultipleCodeLines(),

0 commit comments

Comments
 (0)