This is an automated email from the ASF dual-hosted git repository. markt 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 6496a60 Remove unused code 6496a60 is described below commit 6496a602348098152b2a758fcc5cc266a61472aa Author: Mark Thomas <ma...@apache.org> AuthorDate: Thu Sep 2 09:20:48 2021 +0100 Remove unused code --- .../org/apache/commons/fileupload2/impl/FileItemStreamImpl.java | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/main/java/org/apache/commons/fileupload2/impl/FileItemStreamImpl.java b/src/main/java/org/apache/commons/fileupload2/impl/FileItemStreamImpl.java index d06ff38..2d36b52 100644 --- a/src/main/java/org/apache/commons/fileupload2/impl/FileItemStreamImpl.java +++ b/src/main/java/org/apache/commons/fileupload2/impl/FileItemStreamImpl.java @@ -70,11 +70,6 @@ public class FileItemStreamImpl implements FileItemStream { private final InputStream stream; /** - * Whether the file item was already opened. - */ - private boolean opened; - - /** * The headers, if any. */ private FileItemHeaders headers; @@ -189,10 +184,6 @@ public class FileItemStreamImpl implements FileItemStream { */ @Override public InputStream openStream() throws IOException { - if (opened) { - throw new IllegalStateException( - "The stream was already opened."); - } if (((Closeable) stream).isClosed()) { throw new FileItemStream.ItemSkippedException(); }