james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nor...@apache.org
Subject svn commit: r984870 - /james/imap/trunk/store/src/main/java/org/apache/james/imap/store/StoreMessageManager.java
Date Thu, 12 Aug 2010 17:26:40 GMT
Author: norman
Date: Thu Aug 12 17:26:40 2010
New Revision: 984870

URL: http://svn.apache.org/viewvc?rev=984870&view=rev
Log:
Only small cleanups

Modified:
    james/imap/trunk/store/src/main/java/org/apache/james/imap/store/StoreMessageManager.java

Modified: james/imap/trunk/store/src/main/java/org/apache/james/imap/store/StoreMessageManager.java
URL: http://svn.apache.org/viewvc/james/imap/trunk/store/src/main/java/org/apache/james/imap/store/StoreMessageManager.java?rev=984870&r1=984869&r2=984870&view=diff
==============================================================================
--- james/imap/trunk/store/src/main/java/org/apache/james/imap/store/StoreMessageManager.java
(original)
+++ james/imap/trunk/store/src/main/java/org/apache/james/imap/store/StoreMessageManager.java
Thu Aug 12 17:26:40 2010
@@ -392,11 +392,6 @@ public abstract class StoreMessageManage
     }
 
 
-    private int getUnseenCount(MailboxSession mailboxSession) throws MailboxException {
-        final int count = (int) messageMapper.countUnseenMessagesInMailbox(mailbox);
-        return count;
-    }
-
     /*
      * (non-Javadoc)
      * @see org.apache.james.imap.mailbox.Mailbox#expunge(org.apache.james.imap.mailbox.MessageRange,
org.apache.james.imap.mailbox.MailboxSession)
@@ -469,11 +464,6 @@ public abstract class StoreMessageManage
         dispatcher.addMailboxListener(listener);
     }
 
-    private long getUidValidity(MailboxSession mailboxSession) throws MailboxException {
-        final long result = getMailboxEntity().getUidValidity();
-        return result;
-    }
-
     private long getUidNext(MailboxSession mailboxSession) throws MailboxException {
         Mailbox<Id> mailbox = getMailboxEntity();
         if (mailbox == null) {
@@ -547,14 +537,14 @@ public abstract class StoreMessageManage
             org.apache.james.imap.mailbox.Mailbox.MetaData.FetchGroup fetchGroup) throws
MailboxException {
         final long[] recent = recent(resetRecent, mailboxSession);
         final Flags permanentFlags = getPermanentFlags();
-        final long uidValidity = getUidValidity(mailboxSession);
+        final long uidValidity = getMailboxEntity().getUidValidity();
         final long uidNext = getUidNext(mailboxSession);
         final int messageCount = getMessageCount(mailboxSession);
         final int unseenCount;
         final Long firstUnseen;
         switch (fetchGroup) {
             case UNSEEN_COUNT:
-                unseenCount = getUnseenCount(mailboxSession);
+                unseenCount = (int) messageMapper.countUnseenMessagesInMailbox(mailbox);
                 firstUnseen = null;
                 break;
             case FIRST_UNSEEN:



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