Skip to content

Commit 1d186cc

Browse files
committed
minor debug progress
1 parent 1c5c8ad commit 1d186cc

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

src/main/java/org/variantsync/diffdetective/variation/diff/view/DiffView.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,7 @@ public static DiffTree naive(final DiffTree d, final Query q, final BiPredicate<
158158
return naive(d, q, projectionViewText);
159159
}
160160

161+
@Deprecated
161162
public static DiffTree naive(final DiffTree d, final Query q) throws IOException, DiffParseException {
162163
final String[] projectionViewText = new String[2];
163164

src/test/java/ViewTest.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,9 @@ void debugTest(String filename) throws IOException, DiffParseException {
6868
D.assertConsistency();
6969

7070
final Query debugQuery = new ArtifactQuery(" /* Check both of the above conditions, for symbols. */");
71-
Show.diff(DiffView.optimized(D, debugQuery)).showAndAwait();
72-
Show.diff(DiffView.naive(D, debugQuery)).showAndAwait();
71+
final var imp = DiffView.computeWhenNodesAreRelevant(D, debugQuery);
72+
Show.diff(DiffView.optimized(D, debugQuery, imp)).showAndAwait();
73+
Show.diff(DiffView.naive(D, debugQuery, imp)).showAndAwait();
7374
}
7475

7576

0 commit comments

Comments
 (0)