This is an automated email from the ASF dual-hosted git repository. rcordier pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/james-project.git
commit 093dd2cc05eb8879fdbe2b1c95b66038c2d22dce Author: Matthieu Baechler <[email protected]> AuthorDate: Fri Feb 28 18:10:34 2020 +0100 [Refactoring] replace stream on Map by forEach --- .../jmap/draft/methods/SetMailboxesCreationProcessor.java | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/server/protocols/jmap-draft/src/main/java/org/apache/james/jmap/draft/methods/SetMailboxesCreationProcessor.java b/server/protocols/jmap-draft/src/main/java/org/apache/james/jmap/draft/methods/SetMailboxesCreationProcessor.java index 24f4e5c..90519c2 100644 --- a/server/protocols/jmap-draft/src/main/java/org/apache/james/jmap/draft/methods/SetMailboxesCreationProcessor.java +++ b/server/protocols/jmap-draft/src/main/java/org/apache/james/jmap/draft/methods/SetMailboxesCreationProcessor.java @@ -104,13 +104,13 @@ public class SetMailboxesCreationProcessor implements SetMailboxesProcessor { } private void markRequestsAsNotCreatedDueToCycle(SetMailboxesRequest request, SetMailboxesResponse.Builder builder) { - request.getCreate().entrySet() - .forEach(entry -> - builder.notCreated(entry.getKey(), - SetError.builder() - .type(SetError.Type.INVALID_ARGUMENTS) - .description("The created mailboxes introduce a cycle.") - .build())); + request.getCreate().forEach((key, value) -> + builder.notCreated( + key, + SetError.builder() + .type(SetError.Type.INVALID_ARGUMENTS) + .description("The created mailboxes introduce a cycle.") + .build())); } private void createMailbox(MailboxCreationId mailboxCreationId, MailboxCreateRequest mailboxRequest, MailboxSession mailboxSession, --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
