--- old/src/java.base/share/classes/java/net/HttpCookie.java 2018-11-12 15:48:12.000000000 +0000 +++ new/src/java.base/share/classes/java/net/HttpCookie.java 2018-11-12 15:48:12.000000000 +0000 @@ -666,7 +666,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) { @@ -1131,7 +1131,7 @@ * Split cookie header string according to rfc 2965: * 1) split where it is a comma; * 2) but not the comma surrounding by double-quotes, which is the comma - * inside port list or embeded URIs. + * inside port list or embedded URIs. * * @param header * the cookie header string to split