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/12/13 10:01:06 UTC
[james-project] 01/17: [Refactoring] Remove unecessary cast
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 23a73285c6523b4699e1f83a6afff4dbff10f00b
Author: Benoit Tellier <bt...@linagora.com>
AuthorDate: Fri Dec 6 11:23:14 2019 +0700
[Refactoring] Remove unecessary cast
Suggested by intelliJ
---
.../main/java/org/apache/james/mailbox/store/StoreMailboxManager.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/mailbox/store/src/main/java/org/apache/james/mailbox/store/StoreMailboxManager.java b/mailbox/store/src/main/java/org/apache/james/mailbox/store/StoreMailboxManager.java
index 0b62dbe..cb473c3 100644
--- a/mailbox/store/src/main/java/org/apache/james/mailbox/store/StoreMailboxManager.java
+++ b/mailbox/store/src/main/java/org/apache/james/mailbox/store/StoreMailboxManager.java
@@ -414,7 +414,7 @@ public class StoreMailboxManager implements MailboxManager {
MailboxMapper mailboxMapper = mailboxSessionMapperFactory.getMailboxMapper(session);
MessageMapper messageMapper = mailboxSessionMapperFactory.getMessageMapper(session);
- mailboxMapper.execute((Mapper.Transaction<Mailbox>) () -> {
+ mailboxMapper.execute(() -> {
Mailbox mailbox = mailboxMapper.findMailboxByPath(mailboxPath);
if (mailbox == null) {
throw new MailboxNotFoundException(mailboxPath);
---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org