Skip to content

Commit 53077b1

Browse files
committed
fix CI
1 parent 3deb058 commit 53077b1

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

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

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
import static java.util.logging.Level.SEVERE;
2323
import static org.openqa.selenium.remote.CapabilityType.PLATFORM_NAME;
2424

25-
import com.github.javaparser.quality.NotNull;
2625
import java.io.IOException;
2726
import java.net.MalformedURLException;
2827
import java.net.URL;
@@ -869,8 +868,8 @@ public void addCookie(Cookie cookie) {
869868
}
870869

871870
@Override
872-
public void deleteCookieNamed(@NotNull String name) {
873-
if (name.isBlank()) {
871+
public void deleteCookieNamed(String name) {
872+
if (name == null || name.isBlank()) {
874873
throw new IllegalArgumentException("Cookie name cannot be empty");
875874
}
876875
execute(DriverCommand.DELETE_COOKIE(name));
@@ -930,8 +929,8 @@ public Set<Cookie> getCookies() {
930929
}
931930

932931
@Override
933-
public Cookie getCookieNamed(@NotNull String name) {
934-
if (name.isBlank()) {
932+
public Cookie getCookieNamed(String name) {
933+
if (name == null || name.isBlank()) {
935934
throw new IllegalArgumentException("Cookie name cannot be empty");
936935
}
937936
Set<Cookie> allCookies = getCookies();

0 commit comments

Comments
 (0)