commit 7e37ef510ff8ec25786b52508a56c54ded01f278 Author: Karsten Loesing karsten.loesing@gmx.net Date: Mon Aug 20 15:17:13 2018 +0200
Replace lambda with method reference. --- .../java/org/torproject/descriptor/log/WebServerAccessLogImpl.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/main/java/org/torproject/descriptor/log/WebServerAccessLogImpl.java b/src/main/java/org/torproject/descriptor/log/WebServerAccessLogImpl.java index ffaef7b..27ec355 100644 --- a/src/main/java/org/torproject/descriptor/log/WebServerAccessLogImpl.java +++ b/src/main/java/org/torproject/descriptor/log/WebServerAccessLogImpl.java @@ -17,6 +17,7 @@ import java.nio.file.Paths; import java.time.LocalDate; import java.time.format.DateTimeFormatter; import java.util.ArrayList; +import java.util.Collection; import java.util.List; import java.util.regex.Matcher; import java.util.regex.Pattern; @@ -163,7 +164,7 @@ public class WebServerAccessLogImpl extends LogDescriptorImpl lineStr = br.readLine(); } br.close(); - return lists.stream().flatMap(list -> list.stream()); + return lists.stream().flatMap(Collection::stream); } catch (Exception ex) { throw new DescriptorParseException("Cannot retrieve log lines.", ex); }