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 rc...@apache.org on 2020/03/17 04:52:34 UTC
[james-project] 07/08: [Refactoring] replace stream on Map by
forEach
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 <ma...@apache.org>
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: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org