Skip to content

Commit

Permalink
Small change to TestingUtils - change .toList() as the terminal strea…
Browse files Browse the repository at this point in the history
…m operation to .collect(Collectors.toList()). (merge main -> ce/main @ 104602)

[git-p4: depot-paths = "//dev/coherence-ce/main/": change = 104607]
  • Loading branch information
rlubke committed Nov 13, 2023
1 parent f6c2e78 commit cc42edc
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -140,15 +140,15 @@ public static List<Span> getSpans(List<Span> listSpans, String[] aOpNames, long
{
return listSpans.stream()
.filter(span -> predicate.test(span.getName()))
.toList();
.collect(Collectors.toList());
}
else
{
// filter and return the spans
return listSpans.stream()
.filter(span -> predicate.test(span.getName()))
.filter(span -> getMetadata(span).get("member").getIntValue() == nMember)
.toList();
.collect(Collectors.toList());
}
}

Expand Down

0 comments on commit cc42edc

Please sign in to comment.