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 "Norman Maurer (JIRA)" <se...@james.apache.org> on 2010/08/13 11:53:17 UTC

[jira] Resolved: (IMAP-194) Mailbox.MetaData countRecent(), getMessageCount(), getUnseenCount() should use long as return type

     [ https://issues.apache.org/jira/browse/IMAP-194?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Norman Maurer resolved IMAP-194.
--------------------------------

    Resolution: Fixed

> 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