clebertsuconic commented on PR #4752:
URL:
https://github.com/apache/activemq-artemis/pull/4752#issuecomment-1904700025
my only concern is storing a reference outside the data structure for the
first message. treeMap.first() is there for right that purpose.
on the implementation for first(), this is just returning:
public E first() {
return m.firstKey();
}
Which means you can always just return first().
I'm not sure if you need to check for empty or not.. as you would need to
double check on that.
--
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]