james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From adup...@apache.org
Subject james-project git commit: Fix Eclipse warnings
Date Tue, 15 Nov 2016 09:18:27 GMT
Repository: james-project
Updated Branches:
  refs/heads/master a0050bd11 -> b3a30c1e5


Fix Eclipse warnings


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

Branch: refs/heads/master
Commit: b3a30c1e5cc08dba5ddff42b3e0c2ad61de78f43
Parents: a0050bd
Author: Raphael Ouazana <raphael.ouazana@linagora.com>
Authored: Mon Nov 14 17:33:17 2016 +0100
Committer: Raphael Ouazana <raphael.ouazana@linagora.com>
Committed: Mon Nov 14 17:33:17 2016 +0100

----------------------------------------------------------------------
 .../apache/james/mailbox/jpa/JPAMailboxSessionMapperFactory.java  | 1 -
 .../org/apache/james/mailbox/jpa/mail/JPAAnnotationMapper.java    | 1 -
 .../james/mailbox/store/StoreMailboxManagerAnnotationTest.java    | 3 ++-
 .../org/apache/james/imap/decode/main/DefaultImapDecoder.java     | 1 -
 4 files changed, 2 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/james-project/blob/b3a30c1e/mailbox/jpa/src/main/java/org/apache/james/mailbox/jpa/JPAMailboxSessionMapperFactory.java
----------------------------------------------------------------------
diff --git a/mailbox/jpa/src/main/java/org/apache/james/mailbox/jpa/JPAMailboxSessionMapperFactory.java
b/mailbox/jpa/src/main/java/org/apache/james/mailbox/jpa/JPAMailboxSessionMapperFactory.java
index 4b59206..9a219af 100644
--- a/mailbox/jpa/src/main/java/org/apache/james/mailbox/jpa/JPAMailboxSessionMapperFactory.java
+++ b/mailbox/jpa/src/main/java/org/apache/james/mailbox/jpa/JPAMailboxSessionMapperFactory.java
@@ -21,7 +21,6 @@ package org.apache.james.mailbox.jpa;
 import javax.persistence.EntityManager;
 import javax.persistence.EntityManagerFactory;
 
-import org.apache.commons.lang.NotImplementedException;
 import org.apache.james.mailbox.MailboxSession;
 import org.apache.james.mailbox.exception.MailboxException;
 import org.apache.james.mailbox.jpa.mail.JPAAnnotationMapper;

http://git-wip-us.apache.org/repos/asf/james-project/blob/b3a30c1e/mailbox/jpa/src/main/java/org/apache/james/mailbox/jpa/mail/JPAAnnotationMapper.java
----------------------------------------------------------------------
diff --git a/mailbox/jpa/src/main/java/org/apache/james/mailbox/jpa/mail/JPAAnnotationMapper.java
b/mailbox/jpa/src/main/java/org/apache/james/mailbox/jpa/mail/JPAAnnotationMapper.java
index 3478af0..5f2da21 100644
--- a/mailbox/jpa/src/main/java/org/apache/james/mailbox/jpa/mail/JPAAnnotationMapper.java
+++ b/mailbox/jpa/src/main/java/org/apache/james/mailbox/jpa/mail/JPAAnnotationMapper.java
@@ -39,7 +39,6 @@ import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
 import com.google.common.base.Function;
-import com.google.common.base.Preconditions;
 import com.google.common.base.Predicate;
 import com.google.common.collect.ImmutableList;
 import com.google.common.collect.ImmutableSet;

http://git-wip-us.apache.org/repos/asf/james-project/blob/b3a30c1e/mailbox/store/src/test/java/org/apache/james/mailbox/store/StoreMailboxManagerAnnotationTest.java
----------------------------------------------------------------------
diff --git a/mailbox/store/src/test/java/org/apache/james/mailbox/store/StoreMailboxManagerAnnotationTest.java
b/mailbox/store/src/test/java/org/apache/james/mailbox/store/StoreMailboxManagerAnnotationTest.java
index ce62bb5..2dd1df7 100644
--- a/mailbox/store/src/test/java/org/apache/james/mailbox/store/StoreMailboxManagerAnnotationTest.java
+++ b/mailbox/store/src/test/java/org/apache/james/mailbox/store/StoreMailboxManagerAnnotationTest.java
@@ -84,6 +84,7 @@ public class StoreMailboxManagerAnnotationTest {
     private StoreMailboxManager storeMailboxManager;
 
 
+    @SuppressWarnings("unchecked")
     @Before
     public void setUp() throws Exception {
         MockitoAnnotations.initMocks(this);
@@ -95,7 +96,7 @@ public class StoreMailboxManagerAnnotationTest {
         when(annotationMapper.execute(any(Mapper.Transaction.class))).thenAnswer(new Answer<Object>()
{
             @Override
             public Object answer(InvocationOnMock invocationOnMock) throws Throwable {
-                Mapper.Transaction transaction = (Mapper.Transaction) invocationOnMock.getArguments()[0];
+                Mapper.Transaction<?> transaction = (Mapper.Transaction<?>) invocationOnMock.getArguments()[0];
                 return transaction.run();
             }
         });

http://git-wip-us.apache.org/repos/asf/james-project/blob/b3a30c1e/protocols/imap/src/main/java/org/apache/james/imap/decode/main/DefaultImapDecoder.java
----------------------------------------------------------------------
diff --git a/protocols/imap/src/main/java/org/apache/james/imap/decode/main/DefaultImapDecoder.java
b/protocols/imap/src/main/java/org/apache/james/imap/decode/main/DefaultImapDecoder.java
index d5e4136..91bd2ab 100644
--- a/protocols/imap/src/main/java/org/apache/james/imap/decode/main/DefaultImapDecoder.java
+++ b/protocols/imap/src/main/java/org/apache/james/imap/decode/main/DefaultImapDecoder.java
@@ -18,7 +18,6 @@
  ****************************************************************/
 package org.apache.james.imap.decode.main;
 
-import org.apache.james.imap.api.ImapConstants;
 import org.apache.james.imap.api.ImapMessage;
 import org.apache.james.imap.api.ImapSessionState;
 import org.apache.james.imap.api.display.HumanReadableText;


---------------------------------------------------------------------
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