hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r939863 - /httpcomponents/httpclient/trunk/httpclient-cache/src/main/java/org/apache/http/client/cache/impl/RequestProtocolCompliance.java
Date Fri, 30 Apr 2010 22:46:55 GMT
Author: sebb
Date: Fri Apr 30 22:46:55 2010
New Revision: 939863

URL: http://svn.apache.org/viewvc?rev=939863&view=rev
Log:
No point creating Integer when we need an int

Modified:
    httpcomponents/httpclient/trunk/httpclient-cache/src/main/java/org/apache/http/client/cache/impl/RequestProtocolCompliance.java

Modified: httpcomponents/httpclient/trunk/httpclient-cache/src/main/java/org/apache/http/client/cache/impl/RequestProtocolCompliance.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient/trunk/httpclient-cache/src/main/java/org/apache/http/client/cache/impl/RequestProtocolCompliance.java?rev=939863&r1=939862&r2=939863&view=diff
==============================================================================
--- httpcomponents/httpclient/trunk/httpclient-cache/src/main/java/org/apache/http/client/cache/impl/RequestProtocolCompliance.java
(original)
+++ httpcomponents/httpclient/trunk/httpclient-cache/src/main/java/org/apache/http/client/cache/impl/RequestProtocolCompliance.java
Fri Apr 30 22:46:55 2010
@@ -105,7 +105,7 @@ public class RequestProtocolCompliance {
         }
 
         request.removeHeaders(HeaderConstants.MAX_FORWARDS);
-        Integer currentMaxForwards = Integer.valueOf(maxForwards.getValue());
+        int currentMaxForwards = Integer.parseInt(maxForwards.getValue());
 
         request.setHeader(HeaderConstants.MAX_FORWARDS, Integer.toString(currentMaxForwards
- 1));
     }



Mime
View raw message