You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Nihal Jain (JIRA)" <ji...@apache.org> on 2018/09/27 09:17:00 UTC

[jira] [Created] (HBASE-21243) Correct java-doc for the method RpcServer.getRemoteAddress()

Nihal Jain created HBASE-21243:
----------------------------------

             Summary: Correct java-doc for the method RpcServer.getRemoteAddress()
                 Key: HBASE-21243
                 URL: https://issues.apache.org/jira/browse/HBASE-21243
             Project: HBase
          Issue Type: Improvement
    Affects Versions: 2.0.0, 3.0.0
            Reporter: Nihal Jain


Correct the java-doc for the method {{RpcServer.getRemoteAddress()}}.
 Currently it look like as below:
{code:java}
  /**
   * @return Address of remote client if a request is ongoing, else null
   */
  public static Optional<InetAddress> getRemoteAddress() {
    return getCurrentCall().map(RpcCall::getRemoteAddress);
  }
{code}
Contrary to the doc the method will never return null. Rather it may return an empty Optional.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)