Skip to content
This repository has been archived by the owner on Aug 5, 2024. It is now read-only.

Commit

Permalink
Remove default visibility from new concat method for strings
Browse files Browse the repository at this point in the history
  • Loading branch information
SocksDevil committed Mar 4, 2021
1 parent b9d0b61 commit 48e6fd0
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,9 @@ private List<AnalysisProtos.Artifact> expandDepsetToArtifacts(String idToExpand)
expandedIds.add(depsetId);

actionGraph.getDepSetOfFilesList().stream()
.filter((depset) -> depsetId.equals(depset.getId()))
.forEach((depset) -> {
.filter((depset) -> depsetId.equals(depset.getId()))
.forEach(
(depset) -> {
idsToExpand.addAll(depset.getTransitiveDepSetIdsList());
artifactIds.addAll(depset.getDirectArtifactIdsList());
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,9 @@ private List<AnalysisProtosV2.Artifact> expandDepsetToArtifacts(Integer idToExpa
expandedIds.add(depsetId);

actionGraph.getDepSetOfFilesList().stream()
.filter((depset) -> depsetId.equals(depset.getId()))
.forEach((depset) -> {
.filter((depset) -> depsetId.equals(depset.getId()))
.forEach(
(depset) -> {
idsToExpand.addAll(depset.getTransitiveDepSetIdsList());
artifactIds.addAll(depset.getDirectArtifactIdsList());
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public class BazelBspServerTest {
private final ExecutorService executorService = Executors.newCachedThreadPool();

@SafeVarargs
static <T> Stream<T> concat(Stream<T>... streams) {
private static <T> Stream<T> concat(Stream<T>... streams) {
return Stream.of(streams).reduce(Stream::concat).orElseGet(Stream::empty);
}

Expand Down

0 comments on commit 48e6fd0

Please sign in to comment.