JAMES-2362 Remove now useless exception

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

Branch: refs/heads/master
Commit: 0dfb3bc529d25743ddf398ba9b28d7d3e080677f
Parents: aab77f5
Author: benwa <btell...@linagora.com>
Authored: Fri Mar 23 09:27:46 2018 +0700
Committer: benwa <btell...@linagora.com>
Committed: Tue Mar 27 15:16:32 2018 +0700

----------------------------------------------------------------------
 .../main/java/org/apache/james/jmap/methods/MessageSender.java  | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/james-project/blob/0dfb3bc5/server/protocols/jmap/src/main/java/org/apache/james/jmap/methods/MessageSender.java
----------------------------------------------------------------------
diff --git 
a/server/protocols/jmap/src/main/java/org/apache/james/jmap/methods/MessageSender.java
 
b/server/protocols/jmap/src/main/java/org/apache/james/jmap/methods/MessageSender.java
index c141ac1..d9d69a9 100644
--- 
a/server/protocols/jmap/src/main/java/org/apache/james/jmap/methods/MessageSender.java
+++ 
b/server/protocols/jmap/src/main/java/org/apache/james/jmap/methods/MessageSender.java
@@ -29,7 +29,6 @@ import org.apache.james.jmap.send.MailMetadata;
 import org.apache.james.jmap.send.MailSpool;
 import org.apache.james.lifecycle.api.LifecycleUtil;
 import org.apache.james.mailbox.MailboxSession;
-import org.apache.james.mailbox.exception.MailboxException;
 import org.apache.james.mailbox.model.MessageId;
 import org.apache.mailet.Mail;
 
@@ -45,7 +44,7 @@ public class MessageSender {
 
     public void sendMessage(MessageFactory.MetaDataWithContent message,
                             Envelope envelope,
-                            MailboxSession session) throws MailboxException, 
MessagingException {
+                            MailboxSession session) throws MessagingException {
         Mail mail = mailFactory.build(message, envelope);
         try {
             sendMessage(message.getMessageId(), mail, session);
@@ -56,7 +55,7 @@ public class MessageSender {
 
     public void sendMessage(MessageId messageId,
                             Mail mail,
-                            MailboxSession session) throws MailboxException, 
MessagingException {
+                            MailboxSession session) throws MessagingException {
         MailMetadata metadata = new MailMetadata(messageId, 
session.getUser().getUserName());
         mailSpool.send(mail, metadata);
     }


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

Reply via email to