< prev index next >
src/java.base/share/classes/java/net/HttpCookie.java
Print this page
rev 58428 : [mq]: XXXXXXX-typos
@@ -717,11 +717,11 @@
return true;
if (!(obj instanceof HttpCookie))
return false;
HttpCookie other = (HttpCookie)obj;
- // One http cookie equals to another cookie (RFC 2965 sec. 3.3.3) if:
+ // One http cookie is equal to another cookie (RFC 2965 sec. 3.3.3) if:
// 1. they come from same domain (case-insensitive),
// 2. have same name (case-insensitive),
// 3. and have same path (case-sensitive).
return equalsIgnoreCase(getName(), other.getName()) &&
equalsIgnoreCase(getDomain(), other.getDomain()) &&
< prev index next >