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 123bb1a  Javadoc
123bb1a is described below

commit 123bb1a59d3b7bea1a521a8545e3bc36678b9b8e
Author: Gary Gregory <garydgreg...@gmail.com>
AuthorDate: Thu May 25 09:30:19 2023 -0400

    Javadoc
---
 .../main/java/org/apache/commons/fileupload2/disk/DiskFileItem.java   | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git 
a/commons-fileupload2-core/src/main/java/org/apache/commons/fileupload2/disk/DiskFileItem.java
 
b/commons-fileupload2-core/src/main/java/org/apache/commons/fileupload2/disk/DiskFileItem.java
index 3072203..b4fe13d 100644
--- 
a/commons-fileupload2-core/src/main/java/org/apache/commons/fileupload2/disk/DiskFileItem.java
+++ 
b/commons-fileupload2-core/src/main/java/org/apache/commons/fileupload2/disk/DiskFileItem.java
@@ -25,6 +25,7 @@ import java.io.UncheckedIOException;
 import java.io.UnsupportedEncodingException;
 import java.nio.charset.StandardCharsets;
 import java.nio.file.Files;
+import java.nio.file.Path;
 import java.util.Map;
 import java.util.UUID;
 import java.util.concurrent.atomic.AtomicInteger;
@@ -222,7 +223,8 @@ public class DiskFileItem implements FileItem {
      *
      * @return The contents of the file as an array of bytes or {@code null} 
if the data cannot be read.
      * @throws UncheckedIOException if an I/O error occurs.
-     * @throws OutOfMemoryError     if an array of the required size cannot be 
allocated, for example the file is larger that {@code 2GB}
+     * @throws OutOfMemoryError     See {@link Files#readAllBytes(Path)}: If 
an array of the required size cannot be allocated, for example the file is 
larger
+     *                              that {@code 2GB}
      */
     @Override
     public byte[] get() throws UncheckedIOException {

Reply via email to