You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2021/03/24 00:58:13 UTC
[GitHub] [pulsar] merlimat commented on a change in pull request #10025: Corrected Message 's javadoc to reflect actual situation.
merlimat commented on a change in pull request #10025:
URL: https://github.com/apache/pulsar/pull/10025#discussion_r600075236
##########
File path: pulsar-client-api/src/main/java/org/apache/pulsar/client/api/Message.java
##########
@@ -81,7 +81,8 @@
*
* <p>Only messages received from the consumer will have a message id assigned.
*
- * @return the message id null if this message was not received by this client instance
+ * @return the message id
+ * @throws NullPointerException if the message is null (message was not received by this client instance)
Review comment:
I think we should really fix the implementation instead of throwing exception
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org