Skip to content

Commit

Permalink
[java] Use Java Map instead of Guava Immutable Map in Chrome package
Browse files Browse the repository at this point in the history
  • Loading branch information
pujagani committed Oct 10, 2023
1 parent abeb866 commit cdd75fc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions java/src/org/openqa/selenium/chrome/AddHasCasting.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
import static org.openqa.selenium.remote.Browser.CHROME;

import com.google.auto.service.AutoService;
import com.google.common.collect.ImmutableMap;
import java.util.Map;
import java.util.function.Predicate;
import org.openqa.selenium.Capabilities;
Expand All @@ -35,7 +34,7 @@ public class AddHasCasting extends org.openqa.selenium.chromium.AddHasCasting {

@Override
public Map<String, CommandInfo> getAdditionalCommands() {
return ImmutableMap.of(
return Map.of(
GET_CAST_SINKS, new CommandInfo("session/:sessionId/goog/cast/get_sinks", HttpMethod.GET),
SET_CAST_SINK_TO_USE,
new CommandInfo("session/:sessionId/goog/cast/set_sink_to_use", HttpMethod.POST),
Expand Down
3 changes: 1 addition & 2 deletions java/src/org/openqa/selenium/chrome/AddHasCdp.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
import static org.openqa.selenium.remote.Browser.CHROME;

import com.google.auto.service.AutoService;
import com.google.common.collect.ImmutableMap;
import java.util.Map;
import java.util.function.Predicate;
import org.openqa.selenium.Capabilities;
Expand All @@ -35,7 +34,7 @@ public class AddHasCdp extends org.openqa.selenium.chromium.AddHasCdp {

@Override
public Map<String, CommandInfo> getAdditionalCommands() {
return ImmutableMap.of(
return Map.of(
EXECUTE_CDP, new CommandInfo("session/:sessionId/goog/cdp/execute", HttpMethod.POST));
}

Expand Down

0 comments on commit cdd75fc

Please sign in to comment.