We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 95cb8ca commit 9698f5dCopy full SHA for 9698f5d
java/src/org/openqa/selenium/logging/LogEntries.java
@@ -17,6 +17,8 @@
17
18
package org.openqa.selenium.logging;
19
20
+import static java.util.Collections.unmodifiableList;
21
+import static java.util.stream.Collectors.toList;
22
23
import java.util.Iterator;
24
import java.util.List;
@@ -33,7 +35,8 @@ public class LogEntries implements Iterable<LogEntry> {
33
35
private final List<LogEntry> entries;
34
36
37
public LogEntries(Iterable<LogEntry> entries) {
- this.entries = StreamSupport.stream(entries.spliterator(), false).toList();
38
+ this.entries =
39
+ unmodifiableList(StreamSupport.stream(entries.spliterator(), false).collect(toList()));
40
}
41
42
/**
0 commit comments