You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hbase.apache.org by "Viraj Jasani (Jira)" <ji...@apache.org> on 2019/10/11 19:16:00 UTC

[jira] [Resolved] (HBASE-23127) Compile rule to avoid Optional<> params as argument of method

     [ https://issues.apache.org/jira/browse/HBASE-23127?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Viraj Jasani resolved HBASE-23127.
----------------------------------
    Resolution: Won't Fix

As suggested by [~zhangduo], there are some places where we can use Optional<> as method argument unless extra wrap/unwrap is required(e.g. without performing Optional.of, returned Optional value from one method can be passed on as arg to another)

Hence, closing this Jira.

> Compile rule to avoid Optional<> params as argument of method
> -------------------------------------------------------------
>
>                 Key: HBASE-23127
>                 URL: https://issues.apache.org/jira/browse/HBASE-23127
>             Project: HBase
>          Issue Type: Improvement
>    Affects Versions: 3.0.0
>            Reporter: Viraj Jasani
>            Priority: Minor
>
> We should provide compile time rule to avoid including any Optional<> as method argument using either checkstyle or Enforcer rule or any other way possible.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)