dao-jun commented on PR #22393:
URL: https://github.com/apache/pulsar/pull/22393#issuecomment-2031271855
Just a minor comment:
Will
```java
if (ReferenceCountUtil.refCnt(payload) > 0) {
ReferenceCountUtil.release(payload);
}
```
be better?
double release a ReferentCount Object will throw an exception, and
`ReferenceCountUtil.safeRelease(...)` prints WARN log.
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]