Simplify stream chain operations
See gh-39259
This commit is contained in:
committed by
Phillip Webb
parent
15f1e8536b
commit
7f4aaacf42
@@ -32,7 +32,7 @@ class IncompatibleConfigurationFailureAnalyzer extends AbstractFailureAnalyzer<I
|
||||
@Override
|
||||
protected FailureAnalysis analyze(Throwable rootFailure, IncompatibleConfigurationException cause) {
|
||||
String action = String.format("Review the docs for %s and change the configured values.",
|
||||
cause.getIncompatibleKeys().stream().collect(Collectors.joining(", ")));
|
||||
String.join(", ", cause.getIncompatibleKeys()));
|
||||
return new FailureAnalysis(cause.getMessage(), action, cause);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user