Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Java 11 migrate 7 remaining f #1115

Merged
merged 10 commits into from
Dec 22, 2019
Prev Previous commit
Next Next commit
Uses stream properly
  • Loading branch information
anuragagarwal561994 committed Dec 16, 2019
commit 1cd85d4676822e1b2659273105736f8ead15b002
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,9 @@ public int getLogSize() {
}

public boolean logContains(String message) {
return log.stream().anyMatch(event -> event.getFormattedMessage().equals(message));
return log.stream()
.map(ILoggingEvent::getMessage)
.anyMatch(message::equals);
}
}

Expand Down