hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sebb <seb...@gmail.com>
Subject Re: svn commit: r1445521 - /httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/client/methods/HttpRequestWrapper.java
Date Wed, 13 Feb 2013 12:10:13 GMT
On 13 February 2013 09:51,  <fx@apache.org> wrote:
> Author: fx
> Date: Wed Feb 13 09:51:24 2013
> New Revision: 1445521
>
> URL: http://svn.apache.org/r1445521
> Log:
> HTTPCLIENT-1323: CachingHttpClient ignores params set on the request
>
> Modified:
>     httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/client/methods/HttpRequestWrapper.java
>
> Modified: httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/client/methods/HttpRequestWrapper.java
> URL: http://svn.apache.org/viewvc/httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/client/methods/HttpRequestWrapper.java?rev=1445521&r1=1445520&r2=1445521&view=diff
> ==============================================================================
> --- httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/client/methods/HttpRequestWrapper.java
(original)
> +++ httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/client/methods/HttpRequestWrapper.java
Wed Feb 13 09:51:24 2013
> @@ -38,6 +38,7 @@ import org.apache.http.RequestLine;
>  import org.apache.http.annotation.NotThreadSafe;
>  import org.apache.http.message.AbstractHttpMessage;
>  import org.apache.http.message.BasicRequestLine;
> +import org.apache.http.params.HttpParams;
>  import org.apache.http.protocol.HTTP;
>
>  /**
> @@ -141,4 +142,13 @@ public class HttpRequestWrapper extends
>          }
>      }

Please add Javadoc, including @deprecated tag with explanation as to
what to use instead.

> +    @Override
> +    @Deprecated
> +    public HttpParams getParams() {
> +        if (this.params == null) {
> +            this.params = original.getParams().copy();
> +        }
> +        return this.params;
> +    }
> +
>  }
>
>

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


Mime
View raw message