diff --git a/modules/collect/src/main/java/com/opengamma/strata/collect/Guavate.java b/modules/collect/src/main/java/com/opengamma/strata/collect/Guavate.java index 95bf48d9ee..cf18c1f704 100644 --- a/modules/collect/src/main/java/com/opengamma/strata/collect/Guavate.java +++ b/modules/collect/src/main/java/com/opengamma/strata/collect/Guavate.java @@ -829,7 +829,7 @@ static class OnlyCollector implements Collector, Optional @Override public Supplier> supplier() { - return () -> this; + return OnlyCollector::new; } @Override