From 90aee8ef2ff4d26302f731eece98204e8bcbeff0 Mon Sep 17 00:00:00 2001 From: Scott Frederick Date: Thu, 7 Apr 2022 17:10:45 -0500 Subject: [PATCH] Polish FailureAnalyzers deprecation message Fixes gh-30578 --- .../springframework/boot/diagnostics/FailureAnalyzers.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/diagnostics/FailureAnalyzers.java b/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/diagnostics/FailureAnalyzers.java index df040bfb868..d493c47894e 100644 --- a/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/diagnostics/FailureAnalyzers.java +++ b/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/diagnostics/FailureAnalyzers.java @@ -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) {