8213490: Networking area typos and inconsistencies cleanup

Reviewed-by: alanb, chegar, dfuchs
This commit is contained in:
Pavel Rappo 2018-11-13 12:24:34 +00:00
parent 56db122656
commit 8c361a3e74
42 changed files with 87 additions and 87 deletions

View file

@ -54,7 +54,7 @@ class InMemoryCookieStore implements CookieStore {
private Map<String, List<HttpCookie>> domainIndex = null;
private Map<URI, List<HttpCookie>> uriIndex = null;
// use ReentrantLock instead of syncronized for scalability
// use ReentrantLock instead of synchronized for scalability
private ReentrantLock lock = null;
@ -260,7 +260,7 @@ class InMemoryCookieStore implements CookieStore {
int domainLength = domain.length();
int lengthDiff = host.length() - domainLength;
if (lengthDiff == 0) {
// if the host name and the domain name are just string-compare euqal
// if the host name and the domain name are just string-compare equal
return host.equalsIgnoreCase(domain);
} else if (lengthDiff > 0) {
// need to check H & D component
@ -301,7 +301,7 @@ class InMemoryCookieStore implements CookieStore {
toRemove.add(c);
}
} else {
// the cookie has beed removed from main store,
// the cookie has been removed from main store,
// so also remove it from domain indexed store
toRemove.add(c);
}
@ -345,7 +345,7 @@ class InMemoryCookieStore implements CookieStore {
cookieJar.remove(ck);
}
} else {
// the cookie has beed removed from main store,
// the cookie has been removed from main store,
// so also remove it from domain indexed store
it.remove();
}