CookieIdentityComparator and CookiePathComparator could/should implement
Serializable
-------------------------------------------------------------------------------------
Key: HTTPCLIENT-739
URL: https://issues.apache.org/jira/browse/HTTPCLIENT-739
Project: HttpComponents HttpClient
Issue Type: Improvement
Components: HttpClient
Reporter: Sebb
CookieIdentityComparator and CookiePathComparator could/should implement
Serializable
As Findbugs suggests:
"Comparator doesn't implement Serializable
This class implements the Comparator interface. You should consider whether or
not it should also implement the Serializable interface. If a comparator is
used to construct an ordered collection such as a TreeMap, then the TreeMap
will be serializable only if the comparator is also serializable. As most
comparators have little or no state, making them serializable is generally easy
and good defensive programming. "
Neither class has any state, so implementing Serializable would be trivial.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]