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 61c6bb66 Remove unused local variable
61c6bb66 is described below

commit 61c6bb66a65857561c85f83191fe3afa5e7d2e45
Author: Gary D. Gregory <garydgreg...@gmail.com>
AuthorDate: Fri Jun 13 11:01:01 2025 -0400

    Remove unused local variable
---
 .../org/apache/commons/fileupload2/core/MultipartStreamTest.java     | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git 
a/commons-fileupload2-core/src/test/java/org/apache/commons/fileupload2/core/MultipartStreamTest.java
 
b/commons-fileupload2-core/src/test/java/org/apache/commons/fileupload2/core/MultipartStreamTest.java
index 366eb340..60c8d3df 100644
--- 
a/commons-fileupload2-core/src/test/java/org/apache/commons/fileupload2/core/MultipartStreamTest.java
+++ 
b/commons-fileupload2-core/src/test/java/org/apache/commons/fileupload2/core/MultipartStreamTest.java
@@ -23,9 +23,7 @@ import static org.junit.jupiter.api.Assertions.assertThrows;
 import static org.junit.jupiter.api.Assertions.fail;
 
 import java.io.ByteArrayInputStream;
-import java.io.IOException;
 import java.io.InputStream;
-import java.io.OutputStream;
 import java.nio.charset.StandardCharsets;
 
 import org.apache.commons.io.output.NullOutputStream;
@@ -39,7 +37,7 @@ class MultipartStreamTest {
     static private final String BOUNDARY_TEXT = "myboundary";
 
     /**
-     * Checks, whether the maxSize works.
+     * Tests whether the maxSize works.
      */
     @Test
     public void testPartHeaderSizeMaxLimit() throws Exception {
@@ -47,7 +45,6 @@ class MultipartStreamTest {
                 + "Content-Length: 10\r\n" + "\r\n" + "This is the content of 
the file\n" + "\r\n" + "-----1234\r\n"
                 + "Content-Disposition: form-data; name=\"file2\"; 
filename=\"foo2.tab\"\r\n" + "Content-Type: text/whatever\r\n" + "\r\n"
                 + "This is the content of the file\n" + "\r\n" + 
"-----1234--\r\n";
-        final String strContents = request;
         final byte[] byteContents = request.getBytes(StandardCharsets.UTF_8);
         final InputStream input = new ByteArrayInputStream(byteContents);
         final byte[] boundary = "---1234".getBytes();

Reply via email to