Skip to content

Commit

Permalink
[bidi][java] Pass set of browsing contexts instead of list
Browse files Browse the repository at this point in the history
  • Loading branch information
pujagani committed Nov 16, 2022
1 parent e62bacc commit 7ef46ae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions java/src/org/openqa/selenium/bidi/BiDi.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
import java.io.Closeable;
import java.time.Duration;
import java.util.Collections;
import java.util.List;
import java.util.Set;
import java.util.function.Consumer;

import org.openqa.selenium.internal.Require;
Expand Down Expand Up @@ -78,7 +78,7 @@ <X> void addListener(String browsingContextId, Event<X> event, Consumer<X> handl
connection.addListener(event, handler);
}

<X> void addListener(List<String> browsingContextIds, Event<X> event, Consumer<X> handler) {
<X> void addListener(Set<String> browsingContextIds, Event<X> event, Consumer<X> handler) {
Require.nonNull("List of browsing context ids", browsingContextIds);
Require.nonNull("Event to listen for", event);
Require.nonNull("Handler to call", handler);
Expand Down

0 comments on commit 7ef46ae

Please sign in to comment.