> Users of `Message` API should always check `hasKey()` before trying to
do `getKey()`. (A better API would have been to return an
`Optional<String>`).

> In any case, I'd rather not change the behavior of this right now, but
leave it in the same form as 2.7 and earlier versions.

Make sense

Thanks,
Penghui
On May 19, 2021, 1:22 PM +0800, dev@pulsar.apache.org, wrote:
>
> Users of `Message` API should always check `hasKey()` before trying to
> do `getKey()`. (A better API would have been to return an
> `Optional<String>`).
>
> In any case, I'd rather not change the behavior of this right now, but
> leave it in the same form as 2.7 and earlier versions.

Reply via email to