I think the whole method can be simplified by 

```
public Result getRpcResult() {
        try {
            if (resultFuture.isDone()) {
                return resultFuture.get();
            }
        } catch (Exception e) {
            // This should never happen;
            logger.error("Got exception when trying to fetch the underlying 
result of AsyncRpcResult.", e);
        }
        return new RpcResult();
    }
```

what do you say?

[ Full content available at: 
https://github.com/apache/incubator-dubbo/pull/3185 ]
This message was relayed via gitbox.apache.org for 
[email protected]

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to