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 88e950b Whitespace 88e950b is described below commit 88e950bafbeed2d1e3eebb9084ece6c804722e75 Author: Gary Gregory <garydgreg...@gmail.com> AuthorDate: Mon May 1 09:08:14 2023 -0400 Whitespace --- .../src/main/java/org/apache/commons/fileupload2/MultipartStream.java | 4 ---- 1 file changed, 4 deletions(-) diff --git a/commons-fileupload2-core/src/main/java/org/apache/commons/fileupload2/MultipartStream.java b/commons-fileupload2-core/src/main/java/org/apache/commons/fileupload2/MultipartStream.java index da7b078..2f0360e 100644 --- a/commons-fileupload2-core/src/main/java/org/apache/commons/fileupload2/MultipartStream.java +++ b/commons-fileupload2-core/src/main/java/org/apache/commons/fileupload2/MultipartStream.java @@ -572,7 +572,6 @@ public class MultipartStream { * @since 1.3.1 */ public MultipartStream(final InputStream input, final byte[] boundary, final int bufferSize, final ProgressNotifier notifier) { - if (boundary == null) { throw new IllegalArgumentException("boundary may not be null"); } @@ -674,10 +673,8 @@ public class MultipartStream { * @return The position of the boundary found, counting from the beginning of the {@code buffer}, or {@code -1} if not found. */ protected int findSeparator() { - int bufferPos = this.head; int tablePos = 0; - while (bufferPos < this.tail) { while (tablePos >= 0 && buffer[bufferPos] != boundary[tablePos]) { tablePos = boundaryTable[tablePos]; @@ -738,7 +735,6 @@ public class MultipartStream { public boolean readBoundary() throws FileUploadSizeException, MalformedStreamException { final byte[] marker = new byte[2]; final boolean nextChunk; - head += boundaryLength; try { marker[0] = readByte();