File tree Expand file tree Collapse file tree
src/main/java/org/variantsync/diffdetective/diff/difftree/transform Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -29,13 +29,11 @@ public static Starfold IgnoreNodeOrder() {
2929 @ Override
3030 public void transform (DiffTree diffTree ) {
3131 // All non-artifact nodes are potential roots of stars.
32- final List <DiffNode > macroNodes = diffTree .computeAllNodesThat (node -> ! node . isCode () );
33- // System.out.println("Inspecting " + macroNodes.size() + " star root candidates .");
32+ final List <DiffNode > macroNodes = diffTree .computeAllNodesThat (Starfold :: isStarRoot );
33+ // System.out.println("Inspecting " + macroNodes.size() + " star roots .");
3434 for (DiffNode macro : macroNodes ) {
35- if (isStarRoot (macro )) {
36- // System.out.println("Found star root " + macro);
37- foldStar (macro );
38- }
35+ // System.out.println("Found star root " + macro);
36+ foldStar (macro );
3937 }
4038 }
4139
You can’t perform that action at this time.
0 commit comments