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 bt...@apache.org on 2020/04/24 02:59:42 UTC

[james-project] 07/17: [Refactoring] avoid slow compilation limitation of javac

This is an automated email from the ASF dual-hosted git repository.

btellier pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/james-project.git

commit 4f0a2dee085027ab3c8eff1a1029c3e18cb4668c
Author: Matthieu Baechler <ma...@apache.org>
AuthorDate: Tue Apr 21 17:31:30 2020 +0200

    [Refactoring] avoid slow compilation limitation of javac
---
 .../java/org/apache/james/imap/decode/DecoderUtilsLocaleDateTest.java | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/protocols/imap/src/test/java/org/apache/james/imap/decode/DecoderUtilsLocaleDateTest.java b/protocols/imap/src/test/java/org/apache/james/imap/decode/DecoderUtilsLocaleDateTest.java
index 683618f..64a4475 100644
--- a/protocols/imap/src/test/java/org/apache/james/imap/decode/DecoderUtilsLocaleDateTest.java
+++ b/protocols/imap/src/test/java/org/apache/james/imap/decode/DecoderUtilsLocaleDateTest.java
@@ -33,6 +33,7 @@ import org.junit.jupiter.params.ParameterizedTest;
 import org.junit.jupiter.params.provider.Arguments;
 import org.junit.jupiter.params.provider.MethodSource;
 
+import reactor.util.function.Tuple2;
 import reactor.util.function.Tuples;
 
 
@@ -46,8 +47,9 @@ public class DecoderUtilsLocaleDateTest {
     }
 
     static Stream<Arguments> decodeDateTimeWithVariousDefaultLocale() {
+        //(explicit type arguments speedup compilation and analysis time)
         return
-            Stream.of(
+            Stream.<Tuple2<String, String>>of(
                 Tuples.of("21-Oct-1972 20:00:00 +0000", "21 Oct 1972 20:00:00 GMT"),
                 Tuples.of("21-Oct-1972 20:00:00 +0100", "21 Oct 1972 19:00:00 GMT"),
                 Tuples.of("21-Oct-1972 20:00:00 +0200", "21 Oct 1972 18:00:00 GMT"),


---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org