File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
java/src/org/openqa/selenium/remote Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change 2222import static java .util .logging .Level .SEVERE ;
2323import static org .openqa .selenium .remote .CapabilityType .PLATFORM_NAME ;
2424
25- import com .github .javaparser .quality .NotNull ;
2625import java .io .IOException ;
2726import java .net .MalformedURLException ;
2827import 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 ();
You can’t perform that action at this time.
0 commit comments