You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Replace manual Iterator loop with Collection.removeIf() to improve code
readability and maintainability.
The original implementation used a while loop with Iterator to remove
entries that don't match the createOrModifyTopic predicate. While this
worked, it required more boilerplate code and was less expressive.
The new implementation uses the removeIf method introduced in Java 8,
which directly expresses the filtering operation in a single line. This
reduces method complexity and makes the code more idiomatic.
Signed-off-by: Choi Wang Gyu <[email protected]>
0 commit comments