JAMES-2612 Fix attribute name
Project: http://git-wip-us.apache.org/repos/asf/james-project/repo Commit: http://git-wip-us.apache.org/repos/asf/james-project/commit/f713d567 Tree: http://git-wip-us.apache.org/repos/asf/james-project/tree/f713d567 Diff: http://git-wip-us.apache.org/repos/asf/james-project/diff/f713d567 Branch: refs/heads/master Commit: f713d567f48e01dc5c799e781c30d31ae933eb55 Parents: ce8cf47 Author: Antoine Duprat <adup...@linagora.com> Authored: Wed Nov 28 11:53:10 2018 +0100 Committer: Raphael Ouazana <raphael.ouaz...@linagora.com> Committed: Mon Dec 3 11:16:29 2018 +0100 ---------------------------------------------------------------------- .../org/apache/james/mailbox/store/MessageBatcher.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/james-project/blob/f713d567/mailbox/store/src/main/java/org/apache/james/mailbox/store/MessageBatcher.java ---------------------------------------------------------------------- diff --git a/mailbox/store/src/main/java/org/apache/james/mailbox/store/MessageBatcher.java b/mailbox/store/src/main/java/org/apache/james/mailbox/store/MessageBatcher.java index a1119e0..1848ca2 100644 --- a/mailbox/store/src/main/java/org/apache/james/mailbox/store/MessageBatcher.java +++ b/mailbox/store/src/main/java/org/apache/james/mailbox/store/MessageBatcher.java @@ -35,17 +35,17 @@ public class MessageBatcher { List<MessageRange> execute(MessageRange messageRange) throws MailboxException; } - private final int moveBatchSize; + private final int batchSize; - public MessageBatcher(int moveBatchSize) { - Preconditions.checkArgument(moveBatchSize >= NO_BATCH_SIZE); - this.moveBatchSize = moveBatchSize; + public MessageBatcher(int batchSize) { + Preconditions.checkArgument(batchSize >= NO_BATCH_SIZE); + this.batchSize = batchSize; } public List<MessageRange> batchMessages(MessageRange set, BatchedOperation batchedOperation) throws MailboxException { - if (moveBatchSize > 0) { + if (batchSize > 0) { List<MessageRange> movedRanges = new ArrayList<>(); - for (MessageRange messageRange : set.split(moveBatchSize)) { + for (MessageRange messageRange : set.split(batchSize)) { movedRanges.addAll(batchedOperation.execute(messageRange)); } return movedRanges; --------------------------------------------------------------------- To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org For additional commands, e-mail: server-dev-h...@james.apache.org