{@inheritDoc}
(final Object o)
| 227 | * {@inheritDoc} |
| 228 | */ |
| 229 | @Override |
| 230 | public boolean equals(final Object o) { |
| 231 | if (!(o instanceof Cookie other)) { |
| 232 | return false; |
| 233 | } |
| 234 | final String path = getPath() == null ? "/" : getPath(); |
| 235 | final String otherPath = other.getPath() == null ? "/" : other.getPath(); |
| 236 | return new EqualsBuilder() |
| 237 | .append(getName(), other.getName()) |
| 238 | .append(getDomain(), other.getDomain()) |
| 239 | .append(path, otherPath) |
| 240 | .isEquals(); |
| 241 | } |
| 242 | |
| 243 | /** |
| 244 | * {@inheritDoc} |
no test coverage detected