JAMES-2199 Remove a call to ImmutableList.copyOf() expungedUids is already a List.
Project: http://git-wip-us.apache.org/repos/asf/james-project/repo Commit: http://git-wip-us.apache.org/repos/asf/james-project/commit/9312a58f Tree: http://git-wip-us.apache.org/repos/asf/james-project/tree/9312a58f Diff: http://git-wip-us.apache.org/repos/asf/james-project/diff/9312a58f Branch: refs/heads/master Commit: 9312a58f946164a3dfe2a628b07cb439e901e929 Parents: f7b8a64 Author: Daniel Trebbien <[email protected]> Authored: Fri Oct 20 10:26:37 2017 -0500 Committer: Antoine Duprat <[email protected]> Committed: Mon Dec 18 20:31:51 2017 +0100 ---------------------------------------------------------------------- .../events/ElasticSearchListeningMessageSearchIndex.java | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/james-project/blob/9312a58f/mailbox/elasticsearch/src/main/java/org/apache/james/mailbox/elasticsearch/events/ElasticSearchListeningMessageSearchIndex.java ---------------------------------------------------------------------- diff --git a/mailbox/elasticsearch/src/main/java/org/apache/james/mailbox/elasticsearch/events/ElasticSearchListeningMessageSearchIndex.java b/mailbox/elasticsearch/src/main/java/org/apache/james/mailbox/elasticsearch/events/ElasticSearchListeningMessageSearchIndex.java index b889136..d8634f5 100644 --- a/mailbox/elasticsearch/src/main/java/org/apache/james/mailbox/elasticsearch/events/ElasticSearchListeningMessageSearchIndex.java +++ b/mailbox/elasticsearch/src/main/java/org/apache/james/mailbox/elasticsearch/events/ElasticSearchListeningMessageSearchIndex.java @@ -146,12 +146,8 @@ public class ElasticSearchListeningMessageSearchIndex extends ListeningMessageSe .map(uid -> indexIdFor(mailbox, uid)) .collect(Collectors.toList())); } catch (Exception e) { - if (LOGGER.isErrorEnabled()) { - LOGGER.error("Error when deleting messages {} in mailbox {} from index", - mailbox.getMailboxId().serialize(), - ImmutableList.copyOf(expungedUids), - e); - } + LOGGER.error("Error when deleting messages {} in mailbox {} from index", + mailbox.getMailboxId().serialize(), expungedUids, e); } } --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
