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-email.git
The following commit(s) were added to refs/heads/master by this push: new 5016793 Use constant instead of magic string 5016793 is described below commit 5016793c6bc7c00287d48bb1a414c0de5645df7d Author: Gary Gregory <garydgreg...@gmail.com> AuthorDate: Sun Dec 10 13:12:06 2023 -0500 Use constant instead of magic string --- src/test/java/org/apache/commons/mail/EmailTest.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/test/java/org/apache/commons/mail/EmailTest.java b/src/test/java/org/apache/commons/mail/EmailTest.java index 428b1b9..a96360f 100644 --- a/src/test/java/org/apache/commons/mail/EmailTest.java +++ b/src/test/java/org/apache/commons/mail/EmailTest.java @@ -147,9 +147,7 @@ public class EmailTest extends AbstractEmailTest @Test public void testGetSetCharset() { - // test ASCII and UTF-8 charsets; since every JVM is required - // to support these, testing them should always succeed. - Charset set = Charset.forName("US-ASCII"); + Charset set = StandardCharsets.US_ASCII; email.setCharset(set.name()); assertEquals(set.name(), email.getCharset());