This is an automated email from the ASF dual-hosted git repository. markt pushed a commit to branch 1.x in repository https://gitbox.apache.org/repos/asf/commons-fileupload.git
commit 09b848df9d3cb15b3abef593cd8b8096e24ccad0 Author: Mark Thomas <ma...@apache.org> AuthorDate: Fri Sep 15 19:28:32 2023 +0100 Clean-up. I'd like to remove this but can't. --- src/main/java/org/apache/commons/fileupload/disk/DiskFileItem.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/main/java/org/apache/commons/fileupload/disk/DiskFileItem.java b/src/main/java/org/apache/commons/fileupload/disk/DiskFileItem.java index 4534ada9..f07fef4f 100644 --- a/src/main/java/org/apache/commons/fileupload/disk/DiskFileItem.java +++ b/src/main/java/org/apache/commons/fileupload/disk/DiskFileItem.java @@ -496,11 +496,10 @@ public class DiskFileItem * @return An {@link java.io.OutputStream OutputStream} that can be used * for storing the contents of the file. * - * @throws IOException if an error occurs. + * @throws IOException if an error occurs (never happens). */ @Override - public OutputStream getOutputStream() - throws IOException { + public OutputStream getOutputStream() throws IOException { if (dfos == null) { final File outputFile = getTempFile(); dfos = new DeferredFileOutputStream(sizeThreshold, outputFile);