public boolean equals(Object object) {
if (this == object) {
return true;
} else if (this.getClass().equals(object.getClass())) {
NameValuePair pair = (NameValuePair) object;
return ((null == name ? null == pair.name : name.equals(pair.name))
&& (null == value ? null == pair.value : value.equals(pair.value)));
} else {
return false;
}
}
I think the class check should be changed to using the instanceof operator. Otherwise subclassing or different classloaders cause problems here.
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
