From: markt Date: Sat, 24 Oct 2009 21:07:13 +0000 (+0000) Subject: Remove unused field X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=fdf2df20091225bdfe975cca3d68c9717738cd0e;p=tomcat7.0 Remove unused field git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@829451 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/java/org/apache/tomcat/util/http/fileupload/DeferredFileOutputStream.java b/java/org/apache/tomcat/util/http/fileupload/DeferredFileOutputStream.java index 569eb6210..1f26a8427 100644 --- a/java/org/apache/tomcat/util/http/fileupload/DeferredFileOutputStream.java +++ b/java/org/apache/tomcat/util/http/fileupload/DeferredFileOutputStream.java @@ -42,20 +42,13 @@ public class DeferredFileOutputStream /** - * 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 memoryOutputStream or * diskOutputStream. @@ -126,7 +119,6 @@ public class DeferredFileOutputStream byte[] data = memoryOutputStream.toByteArray(); FileOutputStream fos = new FileOutputStream(outputFile); fos.write(data); - diskOutputStream = fos; currentOutputStream = fos; memoryOutputStream = null; }