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 "Benoit Tellier (Jira)" <ji...@apache.org> on 2020/06/03 07:22:01 UTC

[jira] [Closed] (MAILBOX-399) SearchQuery should be immutable

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

Benoit Tellier closed MAILBOX-399.
----------------------------------
    Resolution: Fixed

https://github.com/linagora/james-project/pull/3416 contributed this

> SearchQuery should be immutable
> -------------------------------
>
>                 Key: MAILBOX-399
>                 URL: https://issues.apache.org/jira/browse/MAILBOX-399
>             Project: James Mailbox
>          Issue Type: Improvement
>          Components: api
>    Affects Versions: master
>            Reporter: Benoit Tellier
>            Priority: Major
>             Fix For: 3.6.0
>
>
> While working on JAMES-3182 I realized the SearchQuery object is mutable and thus can change upon processing.
> Clearly, this is a non desirable, potentially buggy behaviour, we should make that SearchQuery immutable.
> Proposition is to leverage the builder pattern to do so.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org