[Java Client] Fix JavaDoc for closeAsync: remove documented exception…#12005
[Java Client] Fix JavaDoc for closeAsync: remove documented exception…#12005eolivelli merged 1 commit intoapache:masterfrom
Conversation
… that isn't thrown
|
/pulsarbot run-failure-checks |
1 similar comment
|
/pulsarbot run-failure-checks |
eolivelli
left a comment
There was a problem hiding this comment.
Lgtm
We do not have a good way to document possibile error outcomes of CompletareFuture.
This is a general problem for libraries that use this mechanism.
I am not sure if we should document anyway the fact that some kind of error may occur
@eolivelli - this is a good point. We could choose to list some of the expected exceptions here. However, there won't be any compile time checks to ensure that implementations of this interface only throw documented exceptions. Since this is a generic problem that extends even beyond Pulsar, I don't think we should try to solve it in this PR. I copied the updated comment from another client interface: |
… that isn't thrown (apache#12005)
… that isn't thrown
Motivation
Fix JavaDoc on the PulsarClient interface.
Changes
throwstoreturnas the method does not actually throw the checked exceptionTesting
No tests needed, as this change just updates the documentation to align with the code.
Documentation
This is fixing documentation. The website does not need to be updated.