[
https://issues.apache.org/jira/browse/JAMES-1441?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13509707#comment-13509707
]
Eric Charles commented on JAMES-1441:
-------------------------------------
Why do you synchronize to create the uids? If you expect an instance of this
class to be used by multiple threads, it will fail on the iteration...
I suppose going from protected to private is to allow you to extend?
You can also define the 2 public isMatch methods to protected
Thx, Eric
> Un-staticize the org.apache.james.mailbox.store.search.MessageSearches
> ----------------------------------------------------------------------
>
> Key: JAMES-1441
> URL: https://issues.apache.org/jira/browse/JAMES-1441
> Project: James Server
> Issue Type: Improvement
> Components: MailStore & MailRepository
> Affects Versions: Trunk
> Environment: all
> Reporter: Andrzej Rusin
> Priority: Trivial
> Attachments: JAMES-1441.patch
>
>
> To allow some overriding, and also make it more elegant, the following would
> be nice:
> A convert the static methods to non-static,
> B convert certain methods from private to protected,
> C remove the main processing from the constructor (necessary for A, and also
> a good practice)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]