Skip to content

Commit 6c53551

Browse files
committed
[java] Use immutable values for return values
1 parent 24fe81b commit 6c53551

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

java/src/org/openqa/selenium/chromium/ChromiumDriver.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ public void launchApp(String id) {
322322
public Map<String, Object> executeCdpCommand(String commandName, Map<String, Object> parameters) {
323323
Require.nonNull("Command Name", commandName);
324324
if (this.cdp == null) {
325-
return java.util.Collections.emptyMap();
325+
return Map.of();
326326
}
327327

328328
return cdp.executeCdpCommand(commandName, parameters);
@@ -363,7 +363,7 @@ public Optional<BiDi> maybeGetBiDi() {
363363
@Override
364364
public List<Map<String, String>> getCastSinks() {
365365
if (this.casting == null) {
366-
return java.util.Collections.emptyList();
366+
return List.of();
367367
}
368368

369369
return casting.getCastSinks();

0 commit comments

Comments
 (0)