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


The following commit(s) were added to refs/heads/1.x by this push:
     new 1d160e3e Remove unused imports
1d160e3e is described below

commit 1d160e3edafa82651e4f849bf638a16d6ae4e76c
Author: Gary D. Gregory <garydgreg...@gmail.com>
AuthorDate: Fri Jun 13 10:51:38 2025 -0400

    Remove unused imports
---
 .../commons/fileupload/DiskFileItemSerializeTest.java   | 17 ++++++++---------
 .../apache/commons/fileupload/DiskFileUploadTest.java   |  1 -
 .../commons/fileupload/RFC2231UtilityTestCase.java      |  1 -
 .../org/apache/commons/fileupload/StreamingTest.java    |  1 -
 .../util/mime/QuotedPrintableDecoderTestCase.java       |  1 -
 5 files changed, 8 insertions(+), 13 deletions(-)

diff --git 
a/src/test/java/org/apache/commons/fileupload/DiskFileItemSerializeTest.java 
b/src/test/java/org/apache/commons/fileupload/DiskFileItemSerializeTest.java
index 1d398a13..ce4c9a9d 100644
--- a/src/test/java/org/apache/commons/fileupload/DiskFileItemSerializeTest.java
+++ b/src/test/java/org/apache/commons/fileupload/DiskFileItemSerializeTest.java
@@ -21,7 +21,6 @@ import static org.junit.Assert.assertEquals;
 import static org.junit.Assert.assertFalse;
 import static org.junit.Assert.assertNotNull;
 import static org.junit.Assert.assertTrue;
-import static org.junit.Assert.fail;
 
 import java.io.ByteArrayInputStream;
 import java.io.ByteArrayOutputStream;
@@ -87,7 +86,7 @@ public class DiskFileItemSerializeTest {
     /**
      * Create a FileItem with the specfied content bytes.
      *
-     * @throws IOException test failure. 
+     * @throws IOException test failure.
      */
     private FileItem createFileItem(final byte[] contentBytes) throws 
IOException {
         return createFileItem(contentBytes, REPO);
@@ -96,7 +95,7 @@ public class DiskFileItemSerializeTest {
     /**
      * Create a FileItem with the specfied content bytes and repository.
      *
-     * @throws IOException test failure. 
+     * @throws IOException test failure.
      */
     private FileItem createFileItem(final byte[] contentBytes, final File 
repository) throws IOException {
         final FileItemFactory factory = new DiskFileItemFactory(THRESHOLD, 
repository);
@@ -151,7 +150,7 @@ public class DiskFileItemSerializeTest {
     /**
      * Test creation of a field for which the amount of data falls above the 
configured threshold.
      *
-     * @throws IOException test failure. 
+     * @throws IOException test failure.
      */
     @Test
     public void testAboveThreshold() throws IOException {
@@ -168,7 +167,7 @@ public class DiskFileItemSerializeTest {
     /**
      * Test creation of a field for which the amount of data falls below the 
configured threshold.
      *
-     * @throws IOException test failure. 
+     * @throws IOException test failure.
      */
     @Test
     public void testBelowThreshold() throws IOException {
@@ -180,7 +179,7 @@ public class DiskFileItemSerializeTest {
     /**
      * Helper method to test creation of a field.
      *
-     * @throws IOException test failure. 
+     * @throws IOException test failure.
      */
     private void testInMemoryObject(final byte[] testFieldValueBytes) throws 
IOException {
         testInMemoryObject(testFieldValueBytes, REPO);
@@ -189,7 +188,7 @@ public class DiskFileItemSerializeTest {
     /**
      * Helper method to test creation of a field when a repository is used.
      *
-     * @throws IOException test failure. 
+     * @throws IOException test failure.
      */
     private void testInMemoryObject(final byte[] testFieldValueBytes, final 
File repository) throws IOException {
         final FileItem item = createFileItem(testFieldValueBytes, repository);
@@ -227,7 +226,7 @@ public class DiskFileItemSerializeTest {
     /**
      * Test creation of a field for which the amount of data equals the 
configured threshold.
      *
-     * @throws IOException test failure. 
+     * @throws IOException test failure.
      */
     @Test
     public void testThreshold() throws IOException {
@@ -239,7 +238,7 @@ public class DiskFileItemSerializeTest {
     /**
      * Test serialization and deserialization when repository is not null.
      *
-     * @throws IOException test failure. 
+     * @throws IOException test failure.
      */
     @Test
     public void testValidRepository() throws IOException {
diff --git 
a/src/test/java/org/apache/commons/fileupload/DiskFileUploadTest.java 
b/src/test/java/org/apache/commons/fileupload/DiskFileUploadTest.java
index 72be2098..ec65b6af 100644
--- a/src/test/java/org/apache/commons/fileupload/DiskFileUploadTest.java
+++ b/src/test/java/org/apache/commons/fileupload/DiskFileUploadTest.java
@@ -18,7 +18,6 @@ package org.apache.commons.fileupload;
 
 import static org.junit.Assert.assertFalse;
 import static org.junit.Assert.assertNotNull;
-import static org.junit.Assert.fail;
 import static org.junit.jupiter.api.Assertions.assertThrows;
 import static org.junit.jupiter.api.Assertions.assertThrowsExactly;
 
diff --git 
a/src/test/java/org/apache/commons/fileupload/RFC2231UtilityTestCase.java 
b/src/test/java/org/apache/commons/fileupload/RFC2231UtilityTestCase.java
index c575433b..e0bddd68 100644
--- a/src/test/java/org/apache/commons/fileupload/RFC2231UtilityTestCase.java
+++ b/src/test/java/org/apache/commons/fileupload/RFC2231UtilityTestCase.java
@@ -22,7 +22,6 @@ import static org.junit.Assert.assertTrue;
 
 import java.io.UnsupportedEncodingException;
 
-import org.apache.commons.fileupload.RFC2231Utility;
 import org.junit.Test;
 
 /**
diff --git a/src/test/java/org/apache/commons/fileupload/StreamingTest.java 
b/src/test/java/org/apache/commons/fileupload/StreamingTest.java
index d8df54df..8d2d8f34 100644
--- a/src/test/java/org/apache/commons/fileupload/StreamingTest.java
+++ b/src/test/java/org/apache/commons/fileupload/StreamingTest.java
@@ -18,7 +18,6 @@ package org.apache.commons.fileupload;
 
 import static org.junit.Assert.assertEquals;
 import static org.junit.Assert.assertTrue;
-import static org.junit.Assert.fail;
 import static org.junit.jupiter.api.Assertions.assertInstanceOf;
 import static org.junit.jupiter.api.Assertions.assertThrows;
 
diff --git 
a/src/test/java/org/apache/commons/fileupload/util/mime/QuotedPrintableDecoderTestCase.java
 
b/src/test/java/org/apache/commons/fileupload/util/mime/QuotedPrintableDecoderTestCase.java
index e8436c91..7db3ba62 100644
--- 
a/src/test/java/org/apache/commons/fileupload/util/mime/QuotedPrintableDecoderTestCase.java
+++ 
b/src/test/java/org/apache/commons/fileupload/util/mime/QuotedPrintableDecoderTestCase.java
@@ -18,7 +18,6 @@ package org.apache.commons.fileupload.util.mime;
 
 import static org.junit.Assert.assertArrayEquals;
 import static org.junit.Assert.assertTrue;
-import static org.junit.Assert.fail;
 import static org.junit.jupiter.api.Assertions.assertThrows;
 
 import java.io.ByteArrayOutputStream;

Reply via email to