From 5609e671005e4df22a13d257557acbb133eafb70 Mon Sep 17 00:00:00 2001 From: Arjen Poutsma Date: Tue, 28 Mar 2023 14:04:09 +0200 Subject: [PATCH] Improve Javadoc of MultipartBodyBuilder This commit improves the Javadoc of MultipartBodyBuilder, to make it clear that it is intended for multipart/form-data. See gh-30179 --- .../org/springframework/http/client/MultipartBodyBuilder.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spring-web/src/main/java/org/springframework/http/client/MultipartBodyBuilder.java b/spring-web/src/main/java/org/springframework/http/client/MultipartBodyBuilder.java index c80e3c56e2..fa72443937 100644 --- a/spring-web/src/main/java/org/springframework/http/client/MultipartBodyBuilder.java +++ b/spring-web/src/main/java/org/springframework/http/client/MultipartBodyBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2021 the original author or authors. + * Copyright 2002-2023 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. @@ -44,7 +44,7 @@ import org.springframework.util.MultiValueMap; * others registered in the * {@link org.springframework.core.ReactiveAdapterRegistry ReactiveAdapterRegistry}. * - *

This builder is intended for use with the reactive + *

This builder is intended to POST {@code multipart/form-data} using the reactive * {@link org.springframework.web.reactive.function.client.WebClient WebClient}. * For multipart requests with the {@code RestTemplate}, simply create and * populate a {@code MultiValueMap} as shown in the Javadoc for