Skip to content

Commit 168cf7a

Browse files
committed
Add nullability annotations to ExecuteMethod interface parameters
1 parent db05817 commit 168cf7a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,14 @@
1818
package org.openqa.selenium.remote;
1919

2020
import java.util.Map;
21+
import org.jspecify.annotations.NullMarked;
22+
import org.jspecify.annotations.Nullable;
2123

2224
/**
2325
* An encapsulation of {@link org.openqa.selenium.remote.RemoteWebDriver#executeScript(String,
2426
* Object...)}.
2527
*/
28+
@NullMarked
2629
public interface ExecuteMethod {
2730
/**
2831
* Execute the given command on the remote webdriver server. Any exceptions will be thrown by the
@@ -32,5 +35,6 @@ public interface ExecuteMethod {
3235
* @param parameters The parameters to execute that command with
3336
* @return The result of {@link Response#getValue()}.
3437
*/
35-
Object execute(String commandName, Map<String, ?> parameters);
38+
@Nullable Object execute(String commandName, @Nullable Map<String, ?> parameters);
39+
3640
}

0 commit comments

Comments
 (0)