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
commit 43bc3cec8ec263717400a8f480c1501133501b3e Author: Gary Gregory <[email protected]> AuthorDate: Mon Jun 5 20:52:46 2023 -0400 Migrate from deprecated API --- .../src/main/java/org/apache/commons/fileupload2/MultipartStream.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commons-fileupload2-core/src/main/java/org/apache/commons/fileupload2/MultipartStream.java b/commons-fileupload2-core/src/main/java/org/apache/commons/fileupload2/MultipartStream.java index e3ef569..974e717 100644 --- a/commons-fileupload2-core/src/main/java/org/apache/commons/fileupload2/MultipartStream.java +++ b/commons-fileupload2-core/src/main/java/org/apache/commons/fileupload2/MultipartStream.java @@ -644,7 +644,7 @@ public class MultipartStream { * @throws IOException if an i/o error occurs. */ public long discardBodyData() throws MalformedStreamException, IOException { - return readBodyData(NullOutputStream.NULL_OUTPUT_STREAM); + return readBodyData(NullOutputStream.INSTANCE); } /**
