You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by bt...@apache.org on 2019/11/18 02:50:59 UTC

[james-project] 25/44: [Refactoring] MimeDescriptorImpl: Use StandardCharsets

This is an automated email from the ASF dual-hosted git repository.

btellier pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/james-project.git

commit 8041b57cfeeea2ed6d43917fd66ca2c7f90beb81
Author: Benoit Tellier <bt...@linagora.com>
AuthorDate: Thu Nov 14 11:31:56 2019 +0700

    [Refactoring] MimeDescriptorImpl: Use StandardCharsets
---
 .../main/java/org/apache/james/mailbox/store/MimeDescriptorImpl.java | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/mailbox/store/src/main/java/org/apache/james/mailbox/store/MimeDescriptorImpl.java b/mailbox/store/src/main/java/org/apache/james/mailbox/store/MimeDescriptorImpl.java
index 4bf5917..a06e7ef 100644
--- a/mailbox/store/src/main/java/org/apache/james/mailbox/store/MimeDescriptorImpl.java
+++ b/mailbox/store/src/main/java/org/apache/james/mailbox/store/MimeDescriptorImpl.java
@@ -19,10 +19,11 @@
 
 package org.apache.james.mailbox.store;
 
+import static java.nio.charset.StandardCharsets.US_ASCII;
+
 import java.io.ByteArrayInputStream;
 import java.io.IOException;
 import java.io.InputStream;
-import java.nio.charset.Charset;
 import java.util.ArrayList;
 import java.util.Collection;
 import java.util.Iterator;
@@ -44,8 +45,6 @@ import org.apache.james.mime4j.stream.RecursionMode;
 
 public class MimeDescriptorImpl implements MimeDescriptor {
 
-    private static final Charset US_ASCII = Charset.forName("US-ASCII");
-
     /**
      * Is this a composite media type (as per RFC2045)?
      * 


---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org