This is an automated email from the ASF dual-hosted git repository. ggregory pushed a commit to branch 1.x in repository https://gitbox.apache.org/repos/asf/commons-fileupload.git
commit 613f33daec9d831f7666dd407679965db664a869 Author: Gary Gregory <[email protected]> AuthorDate: Sun Feb 8 09:48:30 2026 -0500 Use longer lines. --- .../apache/commons/fileupload/DefaultFileItem.java | 47 ++++++++-------------- 1 file changed, 16 insertions(+), 31 deletions(-) diff --git a/src/main/java/org/apache/commons/fileupload/DefaultFileItem.java b/src/main/java/org/apache/commons/fileupload/DefaultFileItem.java index f7ac13f9..dfc68cf4 100644 --- a/src/main/java/org/apache/commons/fileupload/DefaultFileItem.java +++ b/src/main/java/org/apache/commons/fileupload/DefaultFileItem.java @@ -14,6 +14,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package org.apache.commons.fileupload; import java.io.File; @@ -21,49 +22,33 @@ import java.io.File; import org.apache.commons.fileupload.disk.DiskFileItem; /** - * <p> The default implementation of the - * {@link org.apache.commons.fileupload.FileItem FileItem} interface. - * - * <p> After retrieving an instance of this class from a {@link - * org.apache.commons.fileupload.DiskFileUpload DiskFileUpload} instance (see - * {@link org.apache.commons.fileupload.DiskFileUpload - * #parseRequest(javax.servlet.http.HttpServletRequest)}), you may - * either request all contents of file at once using {@link #get()} or - * request an {@link java.io.InputStream InputStream} with - * {@link #getInputStream()} and process the file without attempting to load - * it into memory, which may come handy with large files. + * <p> + * The default implementation of the {@link org.apache.commons.fileupload.FileItem FileItem} interface. + * <p> + * After retrieving an instance of this class from a {@link org.apache.commons.fileupload.DiskFileUpload DiskFileUpload} instance (see + * {@link org.apache.commons.fileupload.DiskFileUpload #parseRequest(javax.servlet.http.HttpServletRequest)}), you may either request all contents of file at + * once using {@link #get()} or request an {@link java.io.InputStream InputStream} with {@link #getInputStream()} and process the file without attempting to + * load it into memory, which may come handy with large files. * * @deprecated 1.1 Use {@code DiskFileItem} instead. */ @Deprecated -public class DefaultFileItem - extends DiskFileItem { +public class DefaultFileItem extends DiskFileItem { /** * Constructs a new {@code DefaultFileItem} instance. * * @param fieldName The name of the form field. - * @param contentType The content type passed by the browser or - * {@code null} if not specified. - * @param isFormField Whether or not this item is a plain form field, as - * opposed to a file upload. - * @param fileName The original file name in the user's file system, or - * {@code null} if not specified. - * @param sizeThreshold The threshold, in bytes, below which items will be - * retained in memory and above which they will be - * stored as a file. - * @param repository The data repository, which is the directory in - * which files will be created, should the item size - * exceed the threshold. - * + * @param contentType The content type passed by the browser or {@code null} if not specified. + * @param isFormField Whether or not this item is a plain form field, as opposed to a file upload. + * @param fileName The original file name in the user's file system, or {@code null} if not specified. + * @param sizeThreshold The threshold, in bytes, below which items will be retained in memory and above which they will be stored as a file. + * @param repository The data repository, which is the directory in which files will be created, should the item size exceed the threshold. * @deprecated 1.1 Use {@code DiskFileItem} instead. */ @Deprecated - public DefaultFileItem(final String fieldName, final String contentType, - final boolean isFormField, final String fileName, final int sizeThreshold, + public DefaultFileItem(final String fieldName, final String contentType, final boolean isFormField, final String fileName, final int sizeThreshold, final File repository) { - super(fieldName, contentType, isFormField, fileName, sizeThreshold, - repository); + super(fieldName, contentType, isFormField, fileName, sizeThreshold, repository); } - }
