james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From btell...@apache.org
Subject [02/17] james-project git commit: JAMES-2562 Change some return types to boolean instead of Boolean
Date Mon, 15 Oct 2018 06:28:25 GMT
JAMES-2562 Change some return types to boolean instead of Boolean


Project: http://git-wip-us.apache.org/repos/asf/james-project/repo
Commit: http://git-wip-us.apache.org/repos/asf/james-project/commit/2610d11f
Tree: http://git-wip-us.apache.org/repos/asf/james-project/tree/2610d11f
Diff: http://git-wip-us.apache.org/repos/asf/james-project/diff/2610d11f

Branch: refs/heads/master
Commit: 2610d11f3757ac396ee9a9fbfad37aadba784c95
Parents: 3bdf79b
Author: Raphael Ouazana <raphael.ouazana@linagora.com>
Authored: Fri Oct 12 17:39:29 2018 +0200
Committer: Benoit Tellier <btellier@linagora.com>
Committed: Mon Oct 15 13:16:06 2018 +0700

----------------------------------------------------------------------
 .../james/mailbox/store/mail/model/impl/MessageParser.java       | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/james-project/blob/2610d11f/mailbox/store/src/main/java/org/apache/james/mailbox/store/mail/model/impl/MessageParser.java
----------------------------------------------------------------------
diff --git a/mailbox/store/src/main/java/org/apache/james/mailbox/store/mail/model/impl/MessageParser.java
b/mailbox/store/src/main/java/org/apache/james/mailbox/store/mail/model/impl/MessageParser.java
index fc78eb4..50b849d 100644
--- a/mailbox/store/src/main/java/org/apache/james/mailbox/store/mail/model/impl/MessageParser.java
+++ b/mailbox/store/src/main/java/org/apache/james/mailbox/store/mail/model/impl/MessageParser.java
@@ -201,7 +201,7 @@ public class MessageParser {
             .orElse(false);
     }
 
-    private Boolean attachmentContentTypeCriterion(Entity part) {
+    private boolean attachmentContentTypeCriterion(Entity part) {
         return getContentTypeField(part)
             .map(ContentTypeField::getMimeType)
             .map(dispositionType -> dispositionType.toLowerCase(Locale.US))
@@ -209,7 +209,7 @@ public class MessageParser {
             .orElse(false);
     }
 
-    private Boolean attachmentDispositionCriterion(Entity part) {
+    private boolean attachmentDispositionCriterion(Entity part) {
         return getContentDispositionField(part)
             .map(ContentDispositionField::getDispositionType)
             .map(dispositionType -> dispositionType.toLowerCase(Locale.US))


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


Mime
View raw message