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:
Sebastian Bazley 2010-04-30 22:33:56 +00:00
parent 529a3e67fc
commit 416085813e
2 changed files with 2 additions and 2 deletions

View File

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

View File

@ -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 {