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 2020/05/04 03:21:25 UTC

[james-project] 06/12: JAMES-2997 Move ContentType JavaDoc to the class

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 8f74fcf24b8891a7689d1f3af51ec6f899454014
Author: Benoit Tellier <bt...@linagora.com>
AuthorDate: Tue Apr 28 16:13:43 2020 +0700

    JAMES-2997 Move ContentType JavaDoc to the class
---
 .../java/org/apache/james/mailbox/model/ContentType.java    | 13 ++++++++-----
 1 file changed, 8 insertions(+), 5 deletions(-)

diff --git a/mailbox/api/src/main/java/org/apache/james/mailbox/model/ContentType.java b/mailbox/api/src/main/java/org/apache/james/mailbox/model/ContentType.java
index 5eeeb26..09f1002 100644
--- a/mailbox/api/src/main/java/org/apache/james/mailbox/model/ContentType.java
+++ b/mailbox/api/src/main/java/org/apache/james/mailbox/model/ContentType.java
@@ -33,6 +33,14 @@ import com.google.common.base.MoreObjects;
 import com.google.common.base.Preconditions;
 import com.google.common.base.Strings;
 
+
+/**
+ * Follows syntax and usage as defined in https://tools.ietf.org/html/rfc2045#section-5
+ * Thus includes mime type, defined by its media type and subtype as well as contentType fields parameters,
+ * including charset
+ * 
+ * Example: text/plain; charset=utf-8
+ */
 public class ContentType {
     public static class MimeType {
         public static MimeType of(String value) {
@@ -181,11 +189,6 @@ public class ContentType {
             .orElse(mimeType.asString()));
     }
 
-    /**
-     * Follows syntax and usage as defined in https://tools.ietf.org/html/rfc2045#section-5
-     * Thus includes media type and parameters, including charset
-     * Example: text/plain; charset=utf-8
-     */
     private final String value;
 
     public ContentType(String value) {


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