Skip to content

Commit c457bd8

Browse files
committed
format
1 parent 3516821 commit c457bd8

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

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

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
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;
2526
import java.io.IOException;
2627
import java.net.MalformedURLException;
2728
import java.net.URL;
@@ -868,9 +869,9 @@ public void addCookie(Cookie cookie) {
868869
}
869870

870871
@Override
871-
public void deleteCookieNamed(String name) {
872+
public void deleteCookieNamed(@NotNull String name) {
872873
if (name.isEmpty() || name.equals(" ")) {
873-
throw new IllegalArgumentException("Cookie name cannot be empty or null");
874+
throw new IllegalArgumentException("Cookie name cannot be empty");
874875
}
875876
execute(DriverCommand.DELETE_COOKIE(name));
876877
}
@@ -929,9 +930,9 @@ public Set<Cookie> getCookies() {
929930
}
930931

931932
@Override
932-
public Cookie getCookieNamed(String name) {
933+
public Cookie getCookieNamed(@NotNull String name) {
933934
if (name.isEmpty() || name.equals(" ")) {
934-
throw new IllegalArgumentException("Cookie name cannot be empty or null");
935+
throw new IllegalArgumentException("Cookie name cannot be empty");
935936
}
936937
Set<Cookie> allCookies = getCookies();
937938
for (Cookie cookie : allCookies) {

0 commit comments

Comments
 (0)