commit | 50982acdf5ff83e48edb924fb4b9d7022d3c0738 | [log] [tgz] |
---|---|---|
author | Darius Jokilehto <dariusjokilehto+os@gmail.com> | Fri May 26 12:07:03 2023 +0100 |
committer | Darius Jokilehto <dariusjokilehto+os@gmail.com> | Fri May 26 12:07:03 2023 +0100 |
tree | 8a6425834a2963c9123a4daade041e09277ea9a8 | |
parent | b1db900059d5743247440f7ba590194f02708273 [diff] |
Fix .toStream deprecation warning Fixes following warning: method toStream in trait IterableOnceOps is deprecated (since 2.13.0): Use .to(LazyList) instead of .toStream Change-Id: I5c1aea873d7a6f08d34a9e4a18e0133150fb8de1
diff --git a/src/main/scala/com/googlesource/gerrit/plugins/analytics/Contributors.scala b/src/main/scala/com/googlesource/gerrit/plugins/analytics/Contributors.scala index 5047805..37006ca 100644 --- a/src/main/scala/com/googlesource/gerrit/plugins/analytics/Contributors.scala +++ b/src/main/scala/com/googlesource/gerrit/plugins/analytics/Contributors.scala
@@ -147,7 +147,7 @@ histogram.get(repo, new AggregatedHistogramFilterByDates(startDate, stopDate, branchesExtractor, aggregationStrategy)) .flatMap(aggregatedCommitActivity => UserActivitySummary.apply(stats)(aggregatedCommitActivity)) - .toStream + .to(LazyList) } } }