Skip to content

Commit 2c43197

Browse files
committed
only run if any of the composed codemods should run
1 parent 0230fd7 commit 2c43197

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

framework/codemodder-base/src/main/java/io/codemodder/CompositeJavaParserChanger.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,9 @@ public List<CodemodChange> visit(
3535
changers.forEach(changer -> changes.addAll(changer.visit(context, cu)));
3636
return changes;
3737
}
38+
39+
@Override
40+
public boolean shouldRun() {
41+
return changers.stream().anyMatch(CodeChanger::shouldRun);
42+
}
3843
}

0 commit comments

Comments
 (0)