[ 
https://issues.apache.org/jira/browse/HTTPCLIENT-2174?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Oleg Kalnichevski resolved HTTPCLIENT-2174.
-------------------------------------------
    Resolution: Fixed

Implemented in HttpClient 4.5.x and HttpCore 5.1.x and 5.2.x.

Oleg

> URIBuilder.getPathSegments() always returns ArrayList
> -----------------------------------------------------
>
>                 Key: HTTPCLIENT-2174
>                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-2174
>             Project: HttpComponents HttpClient
>          Issue Type: Improvement
>    Affects Versions: 4.5.13
>            Reporter: Nathan Reynolds
>            Priority: Trivial
>
> URIBuilder.getPathSegments() returns Collections.emptyList() if pathSegments 
> == null.  Please change this to always return an ArrayList so the caller can 
> call add().  Without this change, the caller has to either make another copy 
> of ArrayList every time or the caller has to detect that the List is empty 
> and create an ArrayList.  This is very clunky to use.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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

Reply via email to