Demogorgon314 opened a new pull request, #15388:
URL: https://github.com/apache/pulsar/pull/15388
### Motivation
In #15369, it introduced the for-loop to replace the for-each, but the
for-loop will create many `Map.Entry` objects, we should use for-each instead
for-loop.
Someplace are using atomic type, we can use
`org.apache.commons.lang.mutable.MutableInt` here.
### Modifications
* Use for-each instead of for-each
* Use MutableInt instead of atomic type.
### Documentation
Check the box below or label this PR directly.
Need to update docs?
- [ ] `doc-required`
(Your PR needs to update docs and you will update later)
- [x] `no-need-doc`
(Please explain why)
- [ ] `doc`
(Your PR contains doc changes)
- [ ] `doc-added`
(Docs have been already added)
--
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]