hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1571363 - /httpcomponents/httpclient/trunk/fluent-hc/src/main/java/org/apache/http/client/fluent/InternalHttpRequest.java
Date Mon, 24 Feb 2014 17:30:06 GMT
Author: sebb
Date: Mon Feb 24 17:30:05 2014
New Revision: 1571363

URL: http://svn.apache.org/r1571363
Log:
Rename or inline local variables to avoid variable hiding

Modified:
    httpcomponents/httpclient/trunk/fluent-hc/src/main/java/org/apache/http/client/fluent/InternalHttpRequest.java

Modified: httpcomponents/httpclient/trunk/fluent-hc/src/main/java/org/apache/http/client/fluent/InternalHttpRequest.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient/trunk/fluent-hc/src/main/java/org/apache/http/client/fluent/InternalHttpRequest.java?rev=1571363&r1=1571362&r2=1571363&view=diff
==============================================================================
--- httpcomponents/httpclient/trunk/fluent-hc/src/main/java/org/apache/http/client/fluent/InternalHttpRequest.java
(original)
+++ httpcomponents/httpclient/trunk/fluent-hc/src/main/java/org/apache/http/client/fluent/InternalHttpRequest.java
Mon Feb 24 17:30:05 2014
@@ -85,17 +85,16 @@ class InternalHttpRequest extends Abstra
 
     @Override
     public RequestLine getRequestLine() {
-        final String method = getMethod();
         final ProtocolVersion ver = getProtocolVersion();
-        final URI uri = getURI();
+        final URI uriCopy = getURI();
         String uritext = null;
-        if (uri != null) {
-            uritext = uri.toASCIIString();
+        if (uriCopy != null) {
+            uritext = uriCopy.toASCIIString();
         }
         if (uritext == null || uritext.isEmpty()) {
             uritext = "/";
         }
-        return new BasicRequestLine(method, uritext, ver);
+        return new BasicRequestLine(getMethod(), uritext, ver);
     }
 
 



Mime
View raw message