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/tomcat.git
commit 86dcf493500011998328ad949ee51d90919ad8e5 Author: Mark Thomas <ma...@apache.org> AuthorDate: Fri Dec 6 16:49:52 2019 +0000 Remove unused code reported by SpotBugs --- .../tomcat/util/http/fileupload/impl/FileItemStreamImpl.java | 9 --------- 1 file changed, 9 deletions(-) diff --git a/java/org/apache/tomcat/util/http/fileupload/impl/FileItemStreamImpl.java b/java/org/apache/tomcat/util/http/fileupload/impl/FileItemStreamImpl.java index 58c0089..40dadf4 100644 --- a/java/org/apache/tomcat/util/http/fileupload/impl/FileItemStreamImpl.java +++ b/java/org/apache/tomcat/util/http/fileupload/impl/FileItemStreamImpl.java @@ -61,11 +61,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; @@ -180,10 +175,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(); } --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org