[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [metrics-lib/master] Simplify stream chain.



commit e3d2556d9c70f8cb3c5aa78e6812639deae8748c
Author: Karsten Loesing <karsten.loesing@xxxxxxx>
Date:   Mon Aug 20 16:06:34 2018 +0200

    Simplify stream chain.
---
 src/test/java/org/torproject/descriptor/log/WebServerModuleTest.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/test/java/org/torproject/descriptor/log/WebServerModuleTest.java b/src/test/java/org/torproject/descriptor/log/WebServerModuleTest.java
index c5cf6e5..8108720 100644
--- a/src/test/java/org/torproject/descriptor/log/WebServerModuleTest.java
+++ b/src/test/java/org/torproject/descriptor/log/WebServerModuleTest.java
@@ -90,7 +90,7 @@ public class WebServerModuleTest {
       + "/server-status HTTP/1.1\" 200 1201"
   };
 
-  private static String logText = Arrays.asList(logLines).stream()
+  private static String logText = Arrays.stream(logLines)
       .map((String line) -> line + (" some content"))
       .collect(Collectors.joining("\n"));
 



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits