[
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: [email protected]
For additional commands, e-mail: [email protected]