chia7712 commented on code in PR #23398:
URL: https://github.com/apache/kafka/pull/23398#discussion_r3951020759
##########
clients/src/testFixtures/java/org/apache/kafka/common/utils/LogCaptureAppender.java:
##########
@@ -112,11 +111,16 @@ public void append(final LogEvent event) {
}
}
- public List<String> getMessages(String level) {
- return getEvents().stream()
- .filter(e -> level.equals(e.getLevel()))
- .map(Event::getMessage)
- .collect(Collectors.toList());
+ public List<String> getMessages(Level level) {
+ final List<String> result = new LinkedList<>();
+ synchronized (events) {
+ for (final LogEvent event : events) {
Review Comment:
Do you hate lambda style :)
--
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]