Skip to content

Commit 9698f5d

Browse files
committed
revert changes to use unmodifiableList
1 parent 95cb8ca commit 9698f5d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

java/src/org/openqa/selenium/logging/LogEntries.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717

1818
package org.openqa.selenium.logging;
1919

20+
import static java.util.Collections.unmodifiableList;
21+
import static java.util.stream.Collectors.toList;
2022

2123
import java.util.Iterator;
2224
import java.util.List;
@@ -33,7 +35,8 @@ public class LogEntries implements Iterable<LogEntry> {
3335
private final List<LogEntry> entries;
3436

3537
public LogEntries(Iterable<LogEntry> entries) {
36-
this.entries = StreamSupport.stream(entries.spliterator(), false).toList();
38+
this.entries =
39+
unmodifiableList(StreamSupport.stream(entries.spliterator(), false).collect(toList()));
3740
}
3841

3942
/**

0 commit comments

Comments
 (0)