Skip to content

Commit

Permalink
🚨 back out suggestion for instance where we need to modify the list a…
Browse files Browse the repository at this point in the history
…fter terminating the Stream
  • Loading branch information
ryandens committed Jul 25, 2024
1 parent 402818f commit 720a763
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -243,12 +243,14 @@ private FilesUpdateResult updateFiles(
List<Path> filesFailedToChange = List.of();

// update the dependencies in the manifest file if needed
// We suppress warnings because we conditionally remove items from this list instance
@SuppressWarnings("java:S6204")
List<DependencyGAV> dependencies =
codemodChanges.stream()
.map(CodemodChange::getDependenciesNeeded)
.flatMap(Collection::stream)
.distinct()
.toList();
.collect(Collectors.toList());

List<CodeTFPackageAction> pkgActions;
List<CodeTFChangesetEntry> dependencyChangesetEntries = Collections.emptyList();
Expand Down

0 comments on commit 720a763

Please sign in to comment.