You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by ma...@apache.org on 2025/06/05 11:23:46 UTC
(commons-fileupload) 05/06: Remove code that has been unused since it was first added.
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 3b5cf257d74a30463223994cfec62567d5652383
Author: Mark Thomas <ma...@apache.org>
AuthorDate: Thu Jun 5 12:01:29 2025 +0100
Remove code that has been unused since it was first added.
---
src/main/java/org/apache/commons/fileupload/FileUploadBase.java | 8 --------
1 file changed, 8 deletions(-)
diff --git a/src/main/java/org/apache/commons/fileupload/FileUploadBase.java b/src/main/java/org/apache/commons/fileupload/FileUploadBase.java
index 6646d0bc..5baca997 100644
--- a/src/main/java/org/apache/commons/fileupload/FileUploadBase.java
+++ b/src/main/java/org/apache/commons/fileupload/FileUploadBase.java
@@ -102,11 +102,6 @@ public abstract class FileUploadBase {
*/
private final InputStream inputStream;
- /**
- * Whether the file item was already opened.
- */
- private boolean opened;
-
/**
* The headers, if any.
*/
@@ -230,9 +225,6 @@ public abstract class FileUploadBase {
*/
@Override
public InputStream openStream() throws IOException {
- if (opened) {
- throw new IllegalStateException("The stream was already opened.");
- }
if (((Closeable) inputStream).isClosed()) {
throw new FileItemStream.ItemSkippedException();
}