[tor-commits] [metrics-lib/master] Simplify stream chain.
karsten at torproject.org
karsten at torproject.org
Mon Aug 27 12:33:54 UTC 2018
commit e3d2556d9c70f8cb3c5aa78e6812639deae8748c
Author: Karsten Loesing <karsten.loesing at gmx.net>
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"));
More information about the tor-commits
mailing list