Removed unnecessary boxing / unboxing
This commit is contained in:
parent
e787378024
commit
5faa7e9ea8
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user