From cbf42dea1497a4f20aa02578601fbfddc5e214ad Mon Sep 17 00:00:00 2001 From: Andy Wilkinson Date: Thu, 26 May 2022 13:59:03 +0100 Subject: [PATCH] Update deprecation messages to change removal version from 2.8 to 3.0 Closes gh-30903 --- .../actuate/autoconfigure/OnEndpointElementCondition.java | 4 ++-- .../endpoint/expose/IncludeExcludeEndpointFilter.java | 8 ++++---- .../properties/ConfigurationPropertiesReportEndpoint.java | 2 +- .../boot/actuate/env/EnvironmentEndpoint.java | 4 ++-- .../AbstractRabbitListenerContainerFactoryConfigurer.java | 6 +++--- .../DirectRabbitListenerContainerFactoryConfigurer.java | 4 ++-- .../boot/autoconfigure/amqp/RabbitTemplateConfigurer.java | 6 +++--- .../SimpleRabbitListenerContainerFactoryConfigurer.java | 4 ++-- .../autoconfigure/batch/BatchDataSourceInitializer.java | 4 ++-- ...precatedReactiveElasticsearchRestClientProperties.java | 4 ++-- .../DeprecatedElasticsearchRestClientProperties.java | 4 ++-- .../integration/IntegrationDataSourceInitializer.java | 4 ++-- .../autoconfigure/quartz/QuartzDataSourceInitializer.java | 4 ++-- .../session/JdbcSessionDataSourceInitializer.java | 4 ++-- .../autoconfigure/web/reactive/WebFluxProperties.java | 8 ++++---- .../boot/cli/compiler/grape/AetherGrapeEngine.java | 2 +- .../boot/cli/compiler/grape/AetherGrapeEngineFactory.java | 2 +- .../context/runner/AbstractApplicationContextRunner.java | 6 +++--- .../gradle/tasks/application/CreateBootStartScripts.java | 2 +- .../boot/SpringApplicationRunListener.java | 6 +++--- .../boot/builder/SpringApplicationBuilder.java | 4 ++-- .../boot/context/event/ApplicationReadyEvent.java | 4 ++-- .../boot/context/event/ApplicationStartedEvent.java | 4 ++-- .../boot/jdbc/AbstractDataSourceInitializer.java | 4 ++-- .../boot/jdbc/DataSourceInitializationMode.java | 4 ++-- .../boot/logging/log4j2/Log4J2LoggingSystem.java | 4 ++-- .../orm/jpa/hibernate/SpringPhysicalNamingStrategy.java | 4 ++-- 27 files changed, 58 insertions(+), 58 deletions(-) diff --git a/spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/OnEndpointElementCondition.java b/spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/OnEndpointElementCondition.java index a9b9a3f7dd..ff0cb0e655 100644 --- a/spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/OnEndpointElementCondition.java +++ b/spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/OnEndpointElementCondition.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2021 the original author or authors. + * Copyright 2012-2022 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -85,7 +85,7 @@ public abstract class OnEndpointElementCondition extends SpringBootCondition { * Return the default outcome that should be used. * @param context the condition context * @return the default outcome - * @deprecated since 2.6.0 for removal in 2.8.0 in favor of + * @deprecated since 2.6.0 for removal in 3.0.0 in favor of * {@link #getDefaultOutcome(ConditionContext, AnnotationAttributes)} */ @Deprecated diff --git a/spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/endpoint/expose/IncludeExcludeEndpointFilter.java b/spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/endpoint/expose/IncludeExcludeEndpointFilter.java index fa55c55b2b..fe92d83571 100644 --- a/spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/endpoint/expose/IncludeExcludeEndpointFilter.java +++ b/spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/endpoint/expose/IncludeExcludeEndpointFilter.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2021 the original author or authors. + * Copyright 2012-2022 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -58,7 +58,7 @@ public class IncludeExcludeEndpointFilter> implem * @param environment the environment containing the properties * @param prefix the property prefix to bind * @param defaultIncludes the default {@code includes} to use when none are specified. - * @deprecated since 2.6.0 for removal in 2.8.0 in favor of + * @deprecated since 2.6.0 for removal in 3.0.0 in favor of * {@link #IncludeExcludeEndpointFilter(Class, Environment, String, String[])} */ @Deprecated @@ -103,7 +103,7 @@ public class IncludeExcludeEndpointFilter> implem * @param include the include patterns * @param exclude the exclude patterns * @param defaultIncludes the default {@code includes} to use when none are specified. - * @deprecated since 2.6.0 for removal in 2.8.0 in favor of + * @deprecated since 2.6.0 for removal in 3.0.0 in favor of * {@link #IncludeExcludeEndpointFilter(Class, Environment, String, String[])} */ @Deprecated @@ -174,7 +174,7 @@ public class IncludeExcludeEndpointFilter> implem /** * Default include patterns that can be used. - * @deprecated since 2.6.0 for removal in 2.8.0 in favor of {@link EndpointExposure}. + * @deprecated since 2.6.0 for removal in 3.0.0 in favor of {@link EndpointExposure}. */ @Deprecated public enum DefaultIncludes { diff --git a/spring-boot-project/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/context/properties/ConfigurationPropertiesReportEndpoint.java b/spring-boot-project/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/context/properties/ConfigurationPropertiesReportEndpoint.java index bff7fc6d4f..f1545096eb 100644 --- a/spring-boot-project/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/context/properties/ConfigurationPropertiesReportEndpoint.java +++ b/spring-boot-project/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/context/properties/ConfigurationPropertiesReportEndpoint.java @@ -169,7 +169,7 @@ public class ConfigurationPropertiesReportEndpoint implements ApplicationContext * {@link ConfigurationProperties @ConfigurationProperties} objects into a {@link Map} * structure. * @param mapper the object mapper - * @deprecated since 2.6 for removal in 2.8 in favor of + * @deprecated since 2.6 for removal in 3.0 in favor of * {@link #configureJsonMapper(com.fasterxml.jackson.databind.json.JsonMapper.Builder)} */ @Deprecated diff --git a/spring-boot-project/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/env/EnvironmentEndpoint.java b/spring-boot-project/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/env/EnvironmentEndpoint.java index 79644791c2..a261deeda4 100644 --- a/spring-boot-project/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/env/EnvironmentEndpoint.java +++ b/spring-boot-project/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/env/EnvironmentEndpoint.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2021 the original author or authors. + * Copyright 2012-2022 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -198,7 +198,7 @@ public class EnvironmentEndpoint { * @param key the name to sanitize * @param value the value to sanitize * @return the sanitized value - * @deprecated since 2.6.0 for removal in 2.8.0 as sanitization should be internal to + * @deprecated since 2.6.0 for removal in 3.0.0 as sanitization should be internal to * the class */ @Deprecated diff --git a/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/amqp/AbstractRabbitListenerContainerFactoryConfigurer.java b/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/amqp/AbstractRabbitListenerContainerFactoryConfigurer.java index 9877d08b95..cf4ecb2fbe 100644 --- a/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/amqp/AbstractRabbitListenerContainerFactoryConfigurer.java +++ b/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/amqp/AbstractRabbitListenerContainerFactoryConfigurer.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2021 the original author or authors. + * Copyright 2012-2022 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -49,7 +49,7 @@ public abstract class AbstractRabbitListenerContainerFactoryConfigurer