james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From btell...@apache.org
Subject [08/13] james-project git commit: JAMES-1943 Avoid passing a field as parameter in messageSearches
Date Mon, 20 Feb 2017 09:08:52 GMT
JAMES-1943 Avoid passing a field as parameter in messageSearches


Project: http://git-wip-us.apache.org/repos/asf/james-project/repo
Commit: http://git-wip-us.apache.org/repos/asf/james-project/commit/f415df20
Tree: http://git-wip-us.apache.org/repos/asf/james-project/tree/f415df20
Diff: http://git-wip-us.apache.org/repos/asf/james-project/diff/f415df20

Branch: refs/heads/master
Commit: f415df20237060b58db82b7c5bebad0cc38f7b8b
Parents: 55757ba
Author: Benoit Tellier <btellier@linagora.com>
Authored: Wed Feb 15 11:17:26 2017 +0700
Committer: Benoit Tellier <btellier@linagora.com>
Committed: Mon Feb 20 16:07:11 2017 +0700

----------------------------------------------------------------------
 .../org/apache/james/mailbox/store/search/MessageSearches.java   | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/james-project/blob/f415df20/mailbox/store/src/main/java/org/apache/james/mailbox/store/search/MessageSearches.java
----------------------------------------------------------------------
diff --git a/mailbox/store/src/main/java/org/apache/james/mailbox/store/search/MessageSearches.java
b/mailbox/store/src/main/java/org/apache/james/mailbox/store/search/MessageSearches.java
index c478a40..6edd1af 100644
--- a/mailbox/store/src/main/java/org/apache/james/mailbox/store/search/MessageSearches.java
+++ b/mailbox/store/src/main/java/org/apache/james/mailbox/store/search/MessageSearches.java
@@ -101,7 +101,7 @@ public class MessageSearches implements Iterable<SimpleMessageSearchIndex.Search
         while (messages.hasNext()) {
             MailboxMessage m = messages.next();
             try {
-                if (isMatch(query, m)) {
+                if (isMatch(m)) {
                     builder.add(m);
                 }
             } catch (MailboxException e) {
@@ -136,7 +136,7 @@ public class MessageSearches implements Iterable<SimpleMessageSearchIndex.Search
      *         <code>false</code> otherwise
      * @throws MailboxException
      */
-    private boolean isMatch(SearchQuery query, MailboxMessage message) throws MailboxException
{
+    private boolean isMatch(MailboxMessage message) throws MailboxException {
         final List<SearchQuery.Criterion> criteria = query.getCriterias();
         final Collection<MessageUid> recentMessageUids = query.getRecentMessageUids();
         boolean result = true;


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