You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by ah...@apache.org on 2024/04/20 07:47:30 UTC
(commons-statistics) branch master updated: Sonar fix: Use method reference
This is an automated email from the ASF dual-hosted git repository.
aherbert pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-statistics.git
The following commit(s) were added to refs/heads/master by this push:
new dfc37cd Sonar fix: Use method reference
dfc37cd is described below
commit dfc37cd3e177c21e0f9651d18a4efeb1b94eaef5
Author: Alex Herbert <ah...@apache.org>
AuthorDate: Sat Apr 20 08:43:33 2024 +0100
Sonar fix: Use method reference
---
.../java/org/apache/commons/statistics/inference/StatisticUtils.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/commons-statistics-inference/src/main/java/org/apache/commons/statistics/inference/StatisticUtils.java b/commons-statistics-inference/src/main/java/org/apache/commons/statistics/inference/StatisticUtils.java
index d924851..57dc1fd 100644
--- a/commons-statistics-inference/src/main/java/org/apache/commons/statistics/inference/StatisticUtils.java
+++ b/commons-statistics-inference/src/main/java/org/apache/commons/statistics/inference/StatisticUtils.java
@@ -143,7 +143,7 @@ final class StatisticUtils {
final double mean = samples.stream()
.map(Mean::of)
.reduce(Mean::combine)
- .orElseGet(() -> Mean.create())
+ .orElseGet(Mean::create)
.getAsDouble();
// Second-pass correction.
// Note: The correction may not be finite in the event of extreme values.