You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/docs/asciidoc/integration.adoc
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -8331,7 +8331,8 @@ supported wrapper so the previous example can be rewritten as follows:
8331
8331
public Optional<Book> findBook(String name)
8332
8332
----
8333
8333
8334
-
Note that `result` still refers to `Book` and not `Optional`. Also, we are using the safe navigation operator here to accommodate the fact that the `Optional` maybe empty.
8334
+
Note that `result` still refers to `Book` and not `Optional`. As it might be `null`, we
0 commit comments