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:26 UTC
[james-project] 07/12: JAMES-2997 Strong type for ContentType Field
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 ad5b0b6e3c5f0e90a1630a6f8a99d5454537707f
Author: Benoit Tellier <bt...@linagora.com>
AuthorDate: Tue Apr 28 16:16:01 2020 +0700
JAMES-2997 Strong type for ContentType Field
---
.../src/main/java/org/apache/james/mailbox/model/ContentType.java | 6 +++---
1 file changed, 3 insertions(+), 3 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 09f1002..228d646 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
@@ -38,7 +38,7 @@ 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 {
@@ -228,13 +228,13 @@ public class ContentType {
if (o instanceof ContentType) {
ContentType that = (ContentType) o;
- return java.util.Objects.equals(this.value, that.value);
+ return Objects.equals(this.value, that.value);
}
return false;
}
@Override
public final int hashCode() {
- return java.util.Objects.hash(value);
+ return Objects.hash(value);
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org