Unnecessary casts
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@939854 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
529a3e67fc
commit
416085813e
|
@ -60,7 +60,7 @@ public class CachedHttpResponseGenerator {
|
|||
|
||||
long age = entry.getCurrentAgeSecs();
|
||||
if (age > 0) {
|
||||
if (age >= (long) Integer.MAX_VALUE) {
|
||||
if (age >= Integer.MAX_VALUE) {
|
||||
response.setHeader(HeaderConstants.AGE, "2147483648");
|
||||
} else {
|
||||
response.setHeader(HeaderConstants.AGE, "" + ((int) age));
|
||||
|
|
|
@ -208,7 +208,7 @@ public class HttpMultipart {
|
|||
long contentLen = 0;
|
||||
for (FormBodyPart part: this.parts) {
|
||||
ContentBody body = part.getBody();
|
||||
long len = ((ContentBody) body).getContentLength();
|
||||
long len = body.getContentLength();
|
||||
if (len >= 0) {
|
||||
contentLen += len;
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue