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/11/18 02:50:49 UTC

[james-project] 15/44: [Refactoring] MessageResultImpl: Remove redundant 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 195ab61fadbb16bc3418388e4fb233f5ade4b991
Author: Benoit Tellier <bt...@linagora.com>
AuthorDate: Thu Nov 14 11:09:45 2019 +0700

    [Refactoring] MessageResultImpl: Remove redundant cast
---
 .../src/main/java/org/apache/james/mailbox/store/MessageResultImpl.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mailbox/store/src/main/java/org/apache/james/mailbox/store/MessageResultImpl.java b/mailbox/store/src/main/java/org/apache/james/mailbox/store/MessageResultImpl.java
index 53f2201..775ae7a 100644
--- a/mailbox/store/src/main/java/org/apache/james/mailbox/store/MessageResultImpl.java
+++ b/mailbox/store/src/main/java/org/apache/james/mailbox/store/MessageResultImpl.java
@@ -243,7 +243,7 @@ public class MessageResultImpl implements MessageResult {
     }
 
     private PartContent getPartContent(MimePath path) {
-        PartContent result = (PartContent) partsByPath.get(path);
+        PartContent result = partsByPath.get(path);
         if (result == null) {
             result = new PartContent();
             partsByPath.put(path, result);


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