Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/SeleniumHQ/selenium
/ stripPort
Method
stripPort
java/src/org/openqa/selenium/Cookie.java:213–215 ·
view source on GitHub ↗
(@Nullable String domain)
Source
from the content-addressed store, hash-verified
211
}
212
213
private
static
@Nullable String stripPort(@Nullable String domain) {
214
return
(domain == null) ? null : domain.split(
":"
)[0];
215
}
216
217
public
void
validate() {
218
Require.nonEmpty(
"Name"
, name);
Callers
2
Cookie
Method · 0.95
domain
Method · 0.80
Calls
1
split
Method · 0.80
Tested by
no test coverage detected