Skip to content

Commit 854f65b

Browse files
committed
[java] Add JSpecify annotations for nullable parameters in InternetExplorerDriver
1 parent 1560a71 commit 854f65b

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

java/src/org/openqa/selenium/ie/BUILD.bazel

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,6 @@ java_export(
1515
"//java/src/org/openqa/selenium:core",
1616
"//java/src/org/openqa/selenium/manager",
1717
"//java/src/org/openqa/selenium/remote",
18+
"@maven//:org_jspecify_jspecify",
1819
],
1920
)

java/src/org/openqa/selenium/ie/InternetExplorerDriver.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
import org.openqa.selenium.remote.http.ClientConfig;
2828
import org.openqa.selenium.remote.service.DriverCommandExecutor;
2929
import org.openqa.selenium.remote.service.DriverFinder;
30+
import org.jspecify.annotations.Nullable;
3031

3132
public class InternetExplorerDriver extends RemoteWebDriver {
3233

@@ -108,9 +109,9 @@ public InternetExplorerDriver(
108109
* @param options The options required from InternetExplorerDriver.
109110
*/
110111
public InternetExplorerDriver(
111-
InternetExplorerDriverService service,
112-
InternetExplorerOptions options,
113-
ClientConfig clientConfig) {
112+
@Nullable InternetExplorerDriverService service,
113+
@Nullable InternetExplorerOptions options,
114+
@Nullable ClientConfig clientConfig) {
114115
if (options == null) {
115116
options = new InternetExplorerOptions();
116117
}

0 commit comments

Comments
 (0)