Details
-
Improvement
-
Status: Resolved
-
Trivial
-
Resolution: Fixed
-
3.0.0-alpha-1, 2.0.0
-
None
-
Reviewed
Description
Correct the java-doc for the method RpcServer.getRemoteAddress().
Currently it look like as below:
/** * @return Address of remote client if a request is ongoing, else null */ public static Optional<InetAddress> getRemoteAddress() { return getCurrentCall().map(RpcCall::getRemoteAddress); }
Contrary to the doc the method will never return null. Rather it may return an empty Optional.