diff --git a/src/main/asciidoc/repositories.adoc b/src/main/asciidoc/repositories.adoc index 795518eeba..2b1f8b6a77 100644 --- a/src/main/asciidoc/repositories.adoc +++ b/src/main/asciidoc/repositories.adoc @@ -647,10 +647,10 @@ class Product { <1> MonetaryAmount getPrice() { … } } -@RequiredArgConstructor(staticName = "of") +@RequiredArgsConstructor(staticName = "of") class Products implements Streamable { <2> - private Streamable streamable; + private final Streamable streamable; public MonetaryAmount getTotal() { <3> return streamable.stream()