Browse Source

Polish FailureAnalyzers deprecation message

Fixes gh-30578
pull/30641/head
Scott Frederick 4 years ago
parent
commit
90aee8ef2f
  1. 4
      spring-boot-project/spring-boot/src/main/java/org/springframework/boot/diagnostics/FailureAnalyzers.java

4
spring-boot-project/spring-boot/src/main/java/org/springframework/boot/diagnostics/FailureAnalyzers.java

@ -90,9 +90,9 @@ final class FailureAnalyzers implements SpringBootExceptionReporter { @@ -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