No point creating Integer when we need an int
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@939863 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
df4e1924f6
commit
aab7960bce
|
@ -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));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue