jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dbros...@apache.org
Subject svn commit: r1180566 - /jackrabbit/trunk/jackrabbit-webdav/src/main/java/org/apache/jackrabbit/webdav/io/InputContextImpl.java
Date Sun, 09 Oct 2011 08:43:51 GMT
Author: dbrosius
Date: Sun Oct  9 08:43:50 2011
New Revision: 1180566

URL: http://svn.apache.org/viewvc?rev=1180566&view=rev
Log:
use simple (default) int to long conversion

Modified:
    jackrabbit/trunk/jackrabbit-webdav/src/main/java/org/apache/jackrabbit/webdav/io/InputContextImpl.java

Modified: jackrabbit/trunk/jackrabbit-webdav/src/main/java/org/apache/jackrabbit/webdav/io/InputContextImpl.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-webdav/src/main/java/org/apache/jackrabbit/webdav/io/InputContextImpl.java?rev=1180566&r1=1180565&r2=1180566&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-webdav/src/main/java/org/apache/jackrabbit/webdav/io/InputContextImpl.java
(original)
+++ jackrabbit/trunk/jackrabbit-webdav/src/main/java/org/apache/jackrabbit/webdav/io/InputContextImpl.java
Sun Oct  9 08:43:50 2011
@@ -71,8 +71,7 @@ public class InputContextImpl implements
     }
 
     public long getContentLength() {
-        int length = request.getIntHeader(DavConstants.HEADER_CONTENT_LENGTH);
-        return Long.parseLong(length + "");
+        return request.getIntHeader(DavConstants.HEADER_CONTENT_LENGTH);
     }
 
     public String getContentType() {



Mime
View raw message