[ 
https://issues.apache.org/jira/browse/HTTPCLIENT-1270?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13527872#comment-13527872
 ] 

Francois-Xavier Bonnet commented on HTTPCLIENT-1270:
----------------------------------------------------

If we do that, we already have 11 attributes to display for class 
BasicClientCookie2 and we don't even show the class of the cookie 
(BasicClientCookie or BasicClientCookie2) nor the attributes contained in the 
attribs map.

For me toString() method in here to help users debug the content of the 
cookies. Showing a huge debug line with mostly null values or things related to 
implementation details may be quite confusing.
                
> Improved toString() for BasicClientCookie and BasicClientCookie2
> ----------------------------------------------------------------
>
>                 Key: HTTPCLIENT-1270
>                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1270
>             Project: HttpComponents HttpClient
>          Issue Type: Improvement
>          Components: HttpCookie
>    Affects Versions: 4.3 Alpha1
>            Reporter: Francois-Xavier Bonnet
>            Priority: Minor
>         Attachments: BasicClientCookie_patch.txt, HTTPCLIENT-1270.diff
>
>
> Improved toString() method to debug more easily. All the non-null fields of 
> the cookie should be visible for both classes.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to