diff --git a/spring-core/src/main/java/org/springframework/core/io/DefaultResourceLoader.java b/spring-core/src/main/java/org/springframework/core/io/DefaultResourceLoader.java index 09fbbfd25b..27ed3bf1a0 100644 --- a/spring-core/src/main/java/org/springframework/core/io/DefaultResourceLoader.java +++ b/spring-core/src/main/java/org/springframework/core/io/DefaultResourceLoader.java @@ -79,7 +79,7 @@ public class DefaultResourceLoader implements ResourceLoader { * Specify the ClassLoader to load class path resources with, or {@code null} * for using the thread context class loader at the time of actual resource access. *
The default is that ClassLoader access will happen using the thread context
- * class loader at the time of this ResourceLoader's initialization.
+ * class loader at the time of actual resource access (since 5.3).
*/
public void setClassLoader(@Nullable ClassLoader classLoader) {
this.classLoader = classLoader;
diff --git a/spring-web/src/main/java/org/springframework/http/HttpHeaders.java b/spring-web/src/main/java/org/springframework/http/HttpHeaders.java
index 9c07ada076..9c547634b2 100644
--- a/spring-web/src/main/java/org/springframework/http/HttpHeaders.java
+++ b/spring-web/src/main/java/org/springframework/http/HttpHeaders.java
@@ -1768,6 +1768,19 @@ public class HttpHeaders implements MultiValueMap Also caches the parsed representations of the "Accept" and "Content-Type" headers.
+ * @param headers the headers to expose
+ * @return a read-only variant of the headers, or the original headers as-is
+ * (in case it happens to be a read-only {@code HttpHeaders} instance already)
+ * @since 5.3
+ */
+ public static HttpHeaders readOnlyHttpHeaders(MultiValueMap Also caches the parsed representations of the "Accept" and "Content-Type" headers.
diff --git a/spring-webflux/src/main/java/org/springframework/web/reactive/function/client/DefaultWebClientBuilder.java b/spring-webflux/src/main/java/org/springframework/web/reactive/function/client/DefaultWebClientBuilder.java
index f7ba51ed10..0b87db5546 100644
--- a/spring-webflux/src/main/java/org/springframework/web/reactive/function/client/DefaultWebClientBuilder.java
+++ b/spring-webflux/src/main/java/org/springframework/web/reactive/function/client/DefaultWebClientBuilder.java
@@ -229,7 +229,7 @@ final class DefaultWebClientBuilder implements WebClient.Builder {
}
@Override
- @SuppressWarnings("deprecation")
+ @Deprecated
public WebClient.Builder exchangeStrategies(Consumer