Why does java.util.Optional.ofNullable() expect @NonNullable?

后端 未结 0 373
不知归路
不知归路 2021-01-21 06:49

Trying to wrap my head around why a utility class whose sole purpose is to wrap null, expects @NonNullable argument. Example below produces unexpected (to me) null

相关标签:
回答
  • 消灭零回复
提交回复
热议问题