Polish FailureAnalyzers deprecation message

Fixes gh-30578
pull/30641/head
Scott Frederick 3 years ago
parent d67dcf16cd
commit 90aee8ef2f

@ -90,9 +90,9 @@ final class FailureAnalyzers implements SpringBootExceptionReporter {
String awareAnalyzerNames = StringUtils.collectionToCommaDelimitedString(awareAnalyzers.stream()
.map((analyzer) -> analyzer.getClass().getName()).collect(Collectors.toList()));
logger.warn(LogMessage.format(
"FailureAnalyzers [%s] implement BeanFactoryAware or EnvironmentAware."
"FailureAnalyzers [%s] implement BeanFactoryAware or EnvironmentAware. "
+ "Support for these interfaces on FailureAnalyzers is deprecated, "
+ "and will be removed in a future release."
+ "and will be removed in a future release. "
+ "Instead provide a constructor that accepts BeanFactory or Environment parameters.",
awareAnalyzerNames));
if (context == null) {

Loading…
Cancel
Save