--- old/src/java.base/share/classes/java/net/InMemoryCookieStore.java 2018-11-12 15:48:15.000000000 +0000 +++ new/src/java.base/share/classes/java/net/InMemoryCookieStore.java 2018-11-12 15:48:14.000000000 +0000 @@ -54,7 +54,7 @@ private Map> domainIndex = null; private Map> uriIndex = null; - // use ReentrantLock instead of syncronized for scalability + // use ReentrantLock instead of synchronized for scalability private ReentrantLock lock = null; @@ -260,7 +260,7 @@ 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 @@ 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 @@ 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(); }