From 72294c24fba885542dfa97fa6585057df6cde181 Mon Sep 17 00:00:00 2001 From: Yanming Zhou Date: Fri, 24 Jan 2025 00:18:21 +0800 Subject: [PATCH] Deprecate unused EnvironmentUtils (#1456) EnvironmentUtils is not used in all spring-cloud projects, see https://github.com/search?q=org%3Aspring-cloud%20getSubProperties&type=code Signed-off-by: Yanming Zhou --- .../java/org/springframework/cloud/env/EnvironmentUtils.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/spring-cloud-context/src/main/java/org/springframework/cloud/env/EnvironmentUtils.java b/spring-cloud-context/src/main/java/org/springframework/cloud/env/EnvironmentUtils.java index c6943476..d2b0b3a6 100644 --- a/spring-cloud-context/src/main/java/org/springframework/cloud/env/EnvironmentUtils.java +++ b/spring-cloud-context/src/main/java/org/springframework/cloud/env/EnvironmentUtils.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2020 the original author or authors. + * Copyright 2012-2025 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. @@ -26,6 +26,7 @@ import org.springframework.core.env.Environment; /** * @author Spencer Gibb */ +@Deprecated(since = "4.3.0", forRemoval = true) public final class EnvironmentUtils { private EnvironmentUtils() {