Skip to content

Commit

Permalink
Fix Eclipse warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Raphael Ouazana committed Nov 14, 2016
1 parent a0050bd commit b3a30c1
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 4 deletions.
Expand Up @@ -21,7 +21,6 @@
import javax.persistence.EntityManager; import javax.persistence.EntityManager;
import javax.persistence.EntityManagerFactory; import javax.persistence.EntityManagerFactory;


import org.apache.commons.lang.NotImplementedException;
import org.apache.james.mailbox.MailboxSession; import org.apache.james.mailbox.MailboxSession;
import org.apache.james.mailbox.exception.MailboxException; import org.apache.james.mailbox.exception.MailboxException;
import org.apache.james.mailbox.jpa.mail.JPAAnnotationMapper; import org.apache.james.mailbox.jpa.mail.JPAAnnotationMapper;
Expand Down
Expand Up @@ -39,7 +39,6 @@
import org.slf4j.LoggerFactory; import org.slf4j.LoggerFactory;


import com.google.common.base.Function; import com.google.common.base.Function;
import com.google.common.base.Preconditions;
import com.google.common.base.Predicate; import com.google.common.base.Predicate;
import com.google.common.collect.ImmutableList; import com.google.common.collect.ImmutableList;
import com.google.common.collect.ImmutableSet; import com.google.common.collect.ImmutableSet;
Expand Down
Expand Up @@ -84,6 +84,7 @@ public class StoreMailboxManagerAnnotationTest {
private StoreMailboxManager storeMailboxManager; private StoreMailboxManager storeMailboxManager;




@SuppressWarnings("unchecked")
@Before @Before
public void setUp() throws Exception { public void setUp() throws Exception {
MockitoAnnotations.initMocks(this); MockitoAnnotations.initMocks(this);
Expand All @@ -95,7 +96,7 @@ public void setUp() throws Exception {
when(annotationMapper.execute(any(Mapper.Transaction.class))).thenAnswer(new Answer<Object>() { when(annotationMapper.execute(any(Mapper.Transaction.class))).thenAnswer(new Answer<Object>() {
@Override @Override
public Object answer(InvocationOnMock invocationOnMock) throws Throwable { 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(); return transaction.run();
} }
}); });
Expand Down
Expand Up @@ -18,7 +18,6 @@
****************************************************************/ ****************************************************************/
package org.apache.james.imap.decode.main; 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.ImapMessage;
import org.apache.james.imap.api.ImapSessionState; import org.apache.james.imap.api.ImapSessionState;
import org.apache.james.imap.api.display.HumanReadableText; import org.apache.james.imap.api.display.HumanReadableText;
Expand Down

0 comments on commit b3a30c1

Please sign in to comment.