james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Norman Maurer (JIRA)" <server-...@james.apache.org>
Subject [jira] Created: (IMAP-194) Mailbox.MetaData countRecent(), getMessageCount(), getUnseenCount() should use long as return type
Date Fri, 13 Aug 2010 09:06:16 GMT
Mailbox.MetaData  countRecent(), getMessageCount(), getUnseenCount() should use long as return
type
---------------------------------------------------------------------------------------------------

                 Key: IMAP-194
                 URL: https://issues.apache.org/jira/browse/IMAP-194
             Project: JAMES Imap
          Issue Type: Task
          Components: Mailbox
            Reporter: Norman Maurer
            Assignee: Norman Maurer
            Priority: Minor
             Fix For: 0.1


Mailbox.MetaData methods:
int countRecent();
int getMessageCount();
int getUnseenCount();

All of these use int as return type while the MessageMapper interface use long as return type
for the operations. We currently cast the return values of the mappers to int to be able to
build the MetaData. I think we should use long as return type of the MetaData too. So we are
consistent, don't need to cast and are more open for many messages ( even if in real life
the message count should fit in a int ;))
        

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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