You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by se...@apache.org on 2013/05/08 16:17:33 UTC
svn commit: r1480284 -
/commons/proper/io/trunk/src/main/java/org/apache/commons/io/FileUtils.java
Author: sebb
Date: Wed May 8 14:17:33 2013
New Revision: 1480284
URL: http://svn.apache.org/r1480284
Log:
IO-380 FileUtils.copyInputStreamToFile should document it closes the input source
Modified:
commons/proper/io/trunk/src/main/java/org/apache/commons/io/FileUtils.java
Modified: commons/proper/io/trunk/src/main/java/org/apache/commons/io/FileUtils.java
URL: http://svn.apache.org/viewvc/commons/proper/io/trunk/src/main/java/org/apache/commons/io/FileUtils.java?rev=1480284&r1=1480283&r2=1480284&view=diff
==============================================================================
--- commons/proper/io/trunk/src/main/java/org/apache/commons/io/FileUtils.java (original)
+++ commons/proper/io/trunk/src/main/java/org/apache/commons/io/FileUtils.java Wed May 8 14:17:33 2013
@@ -1497,8 +1497,9 @@ public class FileUtils {
* <code>destination</code>. The directories up to <code>destination</code>
* will be created if they don't already exist. <code>destination</code>
* will be overwritten if it already exists.
+ * The {@code source} stream is closed.
*
- * @param source the <code>InputStream</code> to copy bytes from, must not be {@code null}
+ * @param source the <code>InputStream</code> to copy bytes from, must not be {@code null}, will be closed
* @param destination the non-directory <code>File</code> to write bytes to
* (possibly overwriting), must not be {@code null}
* @throws IOException if <code>destination</code> is a directory