james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From btell...@apache.org
Subject [05/44] james-project git commit: JAMES-2267 MimeMessageBuilder: solve some IntelliJ warnings
Date Fri, 05 Jan 2018 03:00:49 GMT
JAMES-2267 MimeMessageBuilder: solve some IntelliJ warnings


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

Branch: refs/heads/master
Commit: b860c64cd5f3b07cecacb5d53f0c524617abc33b
Parents: 0df7c31
Author: benwa <btellier@linagora.com>
Authored: Tue Dec 19 10:18:01 2017 +0700
Committer: benwa <btellier@linagora.com>
Committed: Fri Jan 5 09:13:50 2018 +0700

----------------------------------------------------------------------
 .../java/org/apache/mailet/base/test/MimeMessageBuilder.java  | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/james-project/blob/b860c64c/mailet/base/src/test/java/org/apache/mailet/base/test/MimeMessageBuilder.java
----------------------------------------------------------------------
diff --git a/mailet/base/src/test/java/org/apache/mailet/base/test/MimeMessageBuilder.java
b/mailet/base/src/test/java/org/apache/mailet/base/test/MimeMessageBuilder.java
index f5a5caf..b2b0794 100644
--- a/mailet/base/src/test/java/org/apache/mailet/base/test/MimeMessageBuilder.java
+++ b/mailet/base/src/test/java/org/apache/mailet/base/test/MimeMessageBuilder.java
@@ -283,22 +283,21 @@ public class MimeMessageBuilder {
     }
 
     public MimeMessageBuilder addToRecipient(String... tos) throws AddressException {
-        this.to.addAll(Arrays.asList(tos).stream()
+        this.to.addAll(Arrays.stream(tos)
             .map(TO_INTERNET_ADDRESS)
             .collect(Guavate.toImmutableList()));
         return this;
     }
 
     public MimeMessageBuilder addCcRecipient(String... ccs) throws AddressException {
-        this.cc.addAll(Arrays.asList(ccs).stream()
+        this.cc.addAll(Arrays.stream(ccs)
             .map(TO_INTERNET_ADDRESS)
             .collect(Guavate.toImmutableList()));
         return this;
     }
 
     public MimeMessageBuilder addBccRecipient(String... bccs) throws AddressException {
-        this.bcc.addAll(Arrays.asList(bccs)
-            .stream()
+        this.bcc.addAll(Arrays.stream(bccs)
             .map(TO_INTERNET_ADDRESS)
             .collect(Guavate.toImmutableList()));
         return this;


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