Skip to content

Commit

Permalink
When merging older commits in to newer code copyright updates may be …
Browse files Browse the repository at this point in the history
…'obsolete'
  • Loading branch information
chrisdennis committed Nov 15, 2023
1 parent 4bcf4eb commit 6481587
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ private Set<File> checkFiles(Map<File, Integer> expectedUpdates) {

return expectedUpdates.entrySet().stream().filter(update -> update.getKey().isFile()).map(update -> {
try (Stream<String> lines = Files.lines(update.getKey().toPath(), StandardCharsets.UTF_8)) {
if (lines.map(pattern::matcher).filter(Matcher::find).anyMatch(matcher -> update.getValue().equals(endYear.applyAsInt(matcher)))) {
if (lines.map(pattern::matcher).filter(Matcher::find).anyMatch(matcher -> update.getValue() <= endYear.applyAsInt(matcher))) {
return null;
} else {
return update.getKey();
Expand Down

0 comments on commit 6481587

Please sign in to comment.