This is an automated email from the ASF dual-hosted git repository.

ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-fileupload.git


The following commit(s) were added to refs/heads/master by this push:
     new 3c584302 Fix MultipartInput Javadoc (#385)
3c584302 is described below

commit 3c584302a7beca981e7c06742b53f2c388e7fffe
Author: Andrew Gaul <and...@gaul.org>
AuthorDate: Sat Dec 28 03:54:05 2024 +0900

    Fix MultipartInput Javadoc (#385)
---
 .../java/org/apache/commons/fileupload2/core/MultipartInput.java     | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git 
a/commons-fileupload2-core/src/main/java/org/apache/commons/fileupload2/core/MultipartInput.java
 
b/commons-fileupload2-core/src/main/java/org/apache/commons/fileupload2/core/MultipartInput.java
index 66ae6355..0470ed00 100644
--- 
a/commons-fileupload2-core/src/main/java/org/apache/commons/fileupload2/core/MultipartInput.java
+++ 
b/commons-fileupload2-core/src/main/java/org/apache/commons/fileupload2/core/MultipartInput.java
@@ -65,7 +65,10 @@ import org.apache.commons.io.output.NullOutputStream;
  *
  * <pre>
  * try {
- *     MultipartInput multipartStream = new MultipartInput(input, boundary);
+ *     MultipartInput multipartStream = MultipartInput.builder()
+ *             .setBoundary(boundary)
+ *             .setInputStream(input)
+ *             .get();
  *     boolean nextPart = multipartStream.skipPreamble();
  *     OutputStream output;
  *     while (nextPart) {

Reply via email to