This is an automated email from the ASF dual-hosted git repository. markt 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 0cef2ba Remove unused code 0cef2ba is described below commit 0cef2ba3455869f6b3806bc8f41dd29d1c9ffb99 Author: Mark Thomas <ma...@apache.org> AuthorDate: Thu Sep 2 09:16:26 2021 +0100 Remove unused code --- src/test/java/org/apache/commons/fileupload2/StreamingTest.java | 2 +- .../org/apache/commons/fileupload2/util/mime/Base64DecoderTestCase.java | 2 -- .../commons/fileupload2/util/mime/QuotedPrintableDecoderTestCase.java | 2 -- 3 files changed, 1 insertion(+), 5 deletions(-) diff --git a/src/test/java/org/apache/commons/fileupload2/StreamingTest.java b/src/test/java/org/apache/commons/fileupload2/StreamingTest.java index 39a9e0e..2e21147 100644 --- a/src/test/java/org/apache/commons/fileupload2/StreamingTest.java +++ b/src/test/java/org/apache/commons/fileupload2/StreamingTest.java @@ -269,7 +269,7 @@ public class StreamingTest { } try { - final List<FileItem> fileItems = parseUpload(reqBytes); + parseUpload(reqBytes); fail("Expected exception"); } catch (final InvalidFileNameException e) { assertEquals(fileName, e.getName()); diff --git a/src/test/java/org/apache/commons/fileupload2/util/mime/Base64DecoderTestCase.java b/src/test/java/org/apache/commons/fileupload2/util/mime/Base64DecoderTestCase.java index 033720e..1634d63 100644 --- a/src/test/java/org/apache/commons/fileupload2/util/mime/Base64DecoderTestCase.java +++ b/src/test/java/org/apache/commons/fileupload2/util/mime/Base64DecoderTestCase.java @@ -33,8 +33,6 @@ import org.junit.jupiter.api.Test; */ public final class Base64DecoderTestCase { - private static final String US_ASCII_CHARSET = "US-ASCII"; - /** * Tests RFC 4648 section 10 test vectors. * <ul> diff --git a/src/test/java/org/apache/commons/fileupload2/util/mime/QuotedPrintableDecoderTestCase.java b/src/test/java/org/apache/commons/fileupload2/util/mime/QuotedPrintableDecoderTestCase.java index ffea1ba..fe135fb 100644 --- a/src/test/java/org/apache/commons/fileupload2/util/mime/QuotedPrintableDecoderTestCase.java +++ b/src/test/java/org/apache/commons/fileupload2/util/mime/QuotedPrintableDecoderTestCase.java @@ -33,8 +33,6 @@ import org.junit.jupiter.api.Test; */ public final class QuotedPrintableDecoderTestCase { - private static final String US_ASCII_CHARSET = "US-ASCII"; - @Test public void emptyDecode() throws Exception { assertEncoded("", "");