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:
Sebastian Bazley 2010-04-30 22:46:55 +00:00
parent df4e1924f6
commit aab7960bce
1 changed files with 1 additions and 1 deletions

View File

@ -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));
}