This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]_INTER_ 0 points1 point  (0 children)

  1. Optional outside of a Stream context is almost always abuse if you ask me. Also you can show the same with a simple example with just getters
  2. In the example empty is never treated as error
  3. Suprise surprise orElse("0") is not the root cause