Author: pbenedict
Date: Thu Jun 21 20:42:58 2007
New Revision: 549697

URL: http://svn.apache.org/viewvc?view=rev&rev=549697
Log:
STR-2959: Change method signatures of fileSize property to type long

Modified:
    
struts/struts1/trunk/core/src/main/java/org/apache/struts/upload/CommonsMultipartRequestHandler.java
    
struts/struts1/trunk/core/src/main/java/org/apache/struts/upload/FormFile.java

Modified: 
struts/struts1/trunk/core/src/main/java/org/apache/struts/upload/CommonsMultipartRequestHandler.java
URL: 
http://svn.apache.org/viewvc/struts/struts1/trunk/core/src/main/java/org/apache/struts/upload/CommonsMultipartRequestHandler.java?view=diff&rev=549697&r1=549696&r2=549697
==============================================================================
--- 
struts/struts1/trunk/core/src/main/java/org/apache/struts/upload/CommonsMultipartRequestHandler.java
 (original)
+++ 
struts/struts1/trunk/core/src/main/java/org/apache/struts/upload/CommonsMultipartRequestHandler.java
 Thu Jun 21 20:42:58 2007
@@ -524,8 +524,8 @@
          *
          * @return The size of the file, in bytes.
          */
-        public int getFileSize() {
-            return (int) fileItem.getSize();
+        public long getFileSize() {
+            return fileItem.getSize();
         }
 
         /**
@@ -534,7 +534,7 @@
          *
          * @param filesize The size of the file, in bytes.
          */
-        public void setFileSize(int filesize) {
+        public void setFileSize(long filesize) {
             throw new UnsupportedOperationException(
                 "The setFileSize() method is not supported.");
         }

Modified: 
struts/struts1/trunk/core/src/main/java/org/apache/struts/upload/FormFile.java
URL: 
http://svn.apache.org/viewvc/struts/struts1/trunk/core/src/main/java/org/apache/struts/upload/FormFile.java?view=diff&rev=549697&r1=549696&r2=549697
==============================================================================
--- 
struts/struts1/trunk/core/src/main/java/org/apache/struts/upload/FormFile.java 
(original)
+++ 
struts/struts1/trunk/core/src/main/java/org/apache/struts/upload/FormFile.java 
Thu Jun 21 20:42:58 2007
@@ -49,14 +49,14 @@
      *
      * @return The size of the file, in bytes.
      */
-    public int getFileSize();
+    public long getFileSize();
 
     /**
      * <p> Sets the file size. </p>
      *
      * @param fileSize The size of the file, in bytes,
      */
-    public void setFileSize(int fileSize);
+    public void setFileSize(long fileSize);
 
     /**
      * <p> Returns the file name of this file. This is the base name of the


Reply via email to