tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r829451 - /tomcat/trunk/java/org/apache/tomcat/util/http/fileupload/DeferredFileOutputStream.java
Date Sat, 24 Oct 2009 21:07:13 GMT
Author: markt
Date: Sat Oct 24 21:07:13 2009
New Revision: 829451

URL: http://svn.apache.org/viewvc?rev=829451&view=rev
Log:
Remove unused field

Modified:
    tomcat/trunk/java/org/apache/tomcat/util/http/fileupload/DeferredFileOutputStream.java

Modified: tomcat/trunk/java/org/apache/tomcat/util/http/fileupload/DeferredFileOutputStream.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/tomcat/util/http/fileupload/DeferredFileOutputStream.java?rev=829451&r1=829450&r2=829451&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/tomcat/util/http/fileupload/DeferredFileOutputStream.java
(original)
+++ tomcat/trunk/java/org/apache/tomcat/util/http/fileupload/DeferredFileOutputStream.java
Sat Oct 24 21:07:13 2009
@@ -42,20 +42,13 @@
 
 
     /**
-     * The output stream to which data will be written prior to the theshold
+     * The output stream to which data will be written prior to the threshold
      * being reached.
      */
     private ByteArrayOutputStream memoryOutputStream;
 
 
     /**
-     * The output stream to which data will be written after the theshold is
-     * reached.
-     */
-    private FileOutputStream diskOutputStream;
-
-
-    /**
      * The output stream to which data will be written at any given time. This
      * will always be one of <code>memoryOutputStream</code> or
      * <code>diskOutputStream</code>.
@@ -126,7 +119,6 @@
         byte[] data = memoryOutputStream.toByteArray();
         FileOutputStream fos = new FileOutputStream(outputFile);
         fos.write(data);
-        diskOutputStream = fos;
         currentOutputStream = fos;
         memoryOutputStream = null;
     }



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message