Skip to content

Commit fe122ba

Browse files
committed
IO-380 FileUtils.copyInputStreamToFile should document it closes the input source
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/io/trunk@1480284 13f79535-47bb-0310-9956-ffa450edef68
1 parent 7705470 commit fe122ba

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/main/java/org/apache/commons/io/FileUtils.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1497,8 +1497,9 @@ public static void copyURLToFile(final URL source, final File destination,
14971497
* <code>destination</code>. The directories up to <code>destination</code>
14981498
* will be created if they don't already exist. <code>destination</code>
14991499
* will be overwritten if it already exists.
1500+
* The {@code source} stream is closed.
15001501
*
1501-
* @param source the <code>InputStream</code> to copy bytes from, must not be {@code null}
1502+
* @param source the <code>InputStream</code> to copy bytes from, must not be {@code null}, will be closed
15021503
* @param destination the non-directory <code>File</code> to write bytes to
15031504
* (possibly overwriting), must not be {@code null}
15041505
* @throws IOException if <code>destination</code> is a directory

0 commit comments

Comments
 (0)