Skip to content

Commit 84358bd

Browse files
nnnnoelVietND96pujaganidiemol
authored
[java] refactor(remote/command): Merge overload's business logic (#14469)
* refactor(remote/command): Merge overload's business logic * fix: language level * fix: require non-null assertion for npe when use singleton collection * revert: java language level to 11 --------- Co-authored-by: Viet Nguyen Duc <[email protected]> Co-authored-by: Puja Jagani <[email protected]> Co-authored-by: Diego Molina <[email protected]>
1 parent 5454624 commit 84358bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

java/src/org/openqa/selenium/remote/DriverCommand.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ public interface DriverCommand {
158158

159159
static CommandPayload NEW_SESSION(Capabilities capabilities) {
160160
Require.nonNull("Capabilities", capabilities);
161-
return new CommandPayload(NEW_SESSION, Map.of("capabilities", singleton(capabilities)));
161+
return NEW_SESSION(singleton(capabilities));
162162
}
163163

164164
static CommandPayload NEW_SESSION(Collection<Capabilities> capabilities) {

0 commit comments

Comments
 (0)