tisonkun commented on code in PR #18796:
URL: https://github.com/apache/pulsar/pull/18796#discussion_r1042122599


##########
pulsar-broker/src/main/java/org/apache/pulsar/broker/service/persistent/PersistentStickyKeyDispatcherMultipleConsumers.java:
##########
@@ -236,8 +236,8 @@ protected synchronized boolean 
trySendMessagesToConsumers(ReadType readType, Lis
             Consumer consumer = current.getKey();
             List<Entry> entriesWithSameKey = current.getValue();

Review Comment:
   ```suggestion
               Consumer consumer = current.getKey();
               assert consumer != null; // checked when added to groupedEntries
               List<Entry> entriesWithSameKey = current.getValue();
   ```
   
   ... for better IDE lint.



-- 
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]

Reply via email to