You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by Gary Gregory <ga...@gmail.com> on 2017/12/12 22:52:22 UTC

Return values org.apache.http.client.utils.URLEncodedUtils.parse(URI, Charset)

Hi All:

org.apache.http.client.utils.URLEncodedUtils.parse(URI, Charset)

returns an immutable list if there are no params and a mutable list if
there are params.

This is trouble since all I want to do is add some params for a URI with
the same code.

How about making this API return a NEW ArrayList instead of
Collections.emptyList()?

Gary

Re: Return values org.apache.http.client.utils.URLEncodedUtils.parse(URI, Charset)

Posted by Gary Gregory <ga...@gmail.com>.
On Thu, Dec 14, 2017 at 3:33 PM, Oleg Kalnichevski <ol...@apache.org> wrote:

> On Thu, 2017-12-14 at 09:27 -0700, Gary Gregory wrote:
> > Thoughts?
> >
>
> Works for me.
>

Done!

Gary


>
> Oleg
>
> > Gary
> >
> > On Tue, Dec 12, 2017 at 3:52 PM, Gary Gregory <garydgregory@gmail.com
> > >
> > wrote:
> >
> > > Hi All:
> > >
> > > org.apache.http.client.utils.URLEncodedUtils.parse(URI, Charset)
> > >
> > > returns an immutable list if there are no params and a mutable list
> > > if
> > > there are params.
> > >
> > > This is trouble since all I want to do is add some params for a URI
> > > with
> > > the same code.
> > >
> > > How about making this API return a NEW ArrayList instead of
> > > Collections.emptyList()?
> > >
> > > Gary
> > >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
> For additional commands, e-mail: dev-help@hc.apache.org
>
>

Re: Return values org.apache.http.client.utils.URLEncodedUtils.parse(URI, Charset)

Posted by Oleg Kalnichevski <ol...@apache.org>.
On Thu, 2017-12-14 at 09:27 -0700, Gary Gregory wrote:
> Thoughts?
> 

Works for me.

Oleg

> Gary
> 
> On Tue, Dec 12, 2017 at 3:52 PM, Gary Gregory <garydgregory@gmail.com
> >
> wrote:
> 
> > Hi All:
> > 
> > org.apache.http.client.utils.URLEncodedUtils.parse(URI, Charset)
> > 
> > returns an immutable list if there are no params and a mutable list
> > if
> > there are params.
> > 
> > This is trouble since all I want to do is add some params for a URI
> > with
> > the same code.
> > 
> > How about making this API return a NEW ArrayList instead of
> > Collections.emptyList()?
> > 
> > Gary
> > 

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org


Re: Return values org.apache.http.client.utils.URLEncodedUtils.parse(URI, Charset)

Posted by Gary Gregory <ga...@gmail.com>.
Thoughts?

Gary

On Tue, Dec 12, 2017 at 3:52 PM, Gary Gregory <ga...@gmail.com>
wrote:

> Hi All:
>
> org.apache.http.client.utils.URLEncodedUtils.parse(URI, Charset)
>
> returns an immutable list if there are no params and a mutable list if
> there are params.
>
> This is trouble since all I want to do is add some params for a URI with
> the same code.
>
> How about making this API return a NEW ArrayList instead of
> Collections.emptyList()?
>
> Gary
>