[
https://issues.apache.org/jira/browse/HBASE-18926?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16189256#comment-16189256
]
stack commented on HBASE-18926:
-------------------------------
Thanks for the pointer [~appy] The argument that Optional as param adds
complexity seems fair. Optional in return or even as data member seems fine
though.
> Cleanup Optional<T> from method params
> --------------------------------------
>
> Key: HBASE-18926
> URL: https://issues.apache.org/jira/browse/HBASE-18926
> Project: HBase
> Issue Type: Improvement
> Reporter: Appy
> Assignee: Duo Zhang
>
> ref: Discussion on HBASE-18878
> tldr: Optional is not supposed to be used in method params or class fields
> (http://dolszewski.com/java/java-8-optional-use-cases/). We are doing that in
> some places. Let's revert that.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)