Removed unnecessary boxing / unboxing

This commit is contained in:
Trustin Lee 2009-02-12 07:09:51 +00:00
parent e787378024
commit 5faa7e9ea8

View File

@ -84,7 +84,7 @@ public class DefaultHttpMessage implements HttpMessage {
public int getContentLength() {
List<String> contentLength = headers.get(HttpHeaders.Names.CONTENT_LENGTH);
if (contentLength != null && contentLength.size() > 0) {
return Integer.valueOf(contentLength.get(0));
return Integer.parseInt(contentLength.get(0));
}
return 0;
}