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
The following commit(s) were added to refs/heads/master by this push:
new c0918d88 Fix Javadoc in DeferrableOutputStream.java (#428)
c0918d88 is described below
commit c0918d884ccc32e9f79ceec37ac659ec0e6688e0
Author: Dávid Szigecsán <[email protected]>
AuthorDate: Tue Jul 15 15:40:28 2025 +0200
Fix Javadoc in DeferrableOutputStream.java (#428)
* Fix JavaDoc
* Update DeferrableOutputStream.java
---------
Co-authored-by: Gary Gregory <[email protected]>
---
.../org/apache/commons/fileupload2/core/DeferrableOutputStream.java | 4 ++--
.../main/java/org/apache/commons/fileupload2/core/DiskFileItem.java | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git
a/commons-fileupload2-core/src/main/java/org/apache/commons/fileupload2/core/DeferrableOutputStream.java
b/commons-fileupload2-core/src/main/java/org/apache/commons/fileupload2/core/DeferrableOutputStream.java
index 9925c948..73c49622 100644
---
a/commons-fileupload2-core/src/main/java/org/apache/commons/fileupload2/core/DeferrableOutputStream.java
+++
b/commons-fileupload2-core/src/main/java/org/apache/commons/fileupload2/core/DeferrableOutputStream.java
@@ -153,12 +153,12 @@ public class DeferrableOutputStream extends OutputStream {
* no in-memory data will be kept, at all.
* If the threshold is 0, then the temporary file will be created, as soon
as the
* first byte will be written, but no in-memory data will be kept.
- * If the threshold is >0, then the temporary file will be created, as
soon as that
+ * If the threshold is > 0, then the temporary file will be created, as
soon as that
* number of bytes have been written. Up to that point, data will be kept
in an
* in-memory buffer.
*
* @param threshold Either of -1 (Create the temporary file immediately),
0 (Create
- * the temporary file, as soon as data is being written for the first
time), or >0
+ * the temporary file, as soon as data is being written for the first
time), or >0
* (Keep data in memory, as long as the given number of bytes is
reached, then
* create a temporary file, and continue using that).
* @param pathSupplier A supplier for the temporary files path. This
supplier must
diff --git
a/commons-fileupload2-core/src/main/java/org/apache/commons/fileupload2/core/DiskFileItem.java
b/commons-fileupload2-core/src/main/java/org/apache/commons/fileupload2/core/DiskFileItem.java
index 4a526ffe..19e17f84 100644
---
a/commons-fileupload2-core/src/main/java/org/apache/commons/fileupload2/core/DiskFileItem.java
+++
b/commons-fileupload2-core/src/main/java/org/apache/commons/fileupload2/core/DiskFileItem.java
@@ -69,7 +69,7 @@ import org.apache.commons.io.file.PathUtils;
* {@link #isInMemory()} will return true, if no data was uploaded,
otherwise it will be false.
* In the former case {@link #getPath()} will return null, but in the
latter case it returns
* the path of an existing, non-empty file.</li>
- * <li><em>threshold > 0</em>
+ * <li><em>threshold > 0</em>
* Uploaded data will be kept in memory, if the size is below the
threshold. If the size
* is equal to, or above the threshold, then a temporary file has been
created, and all
* uploaded data has been transferred to that file.