Skip to content

Commit c00374e

Browse files
committed
Deprecate DeferredFileOutputStream.getStream() in favor of
getOutputStream()
1 parent 3ca717b commit c00374e

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

src/changes/changes.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ The <action> type attribute can be add,update,fix,remove.
5252
<action dev="ggregory" type="fix" due-to="Gary Gregory">Pick up maven-antrun-plugin version from parent POM org.apache:apache.</action>
5353
<action dev="ggregory" type="fix" due-to="Gary Gregory">Javadoc is missing its Overview page.</action>
5454
<action dev="ggregory" type="fix" due-to="Gary Gregory">Remove -nouses directive from maven-bundle-plugin. OSGi package imports now state 'uses' definitions for package imports, this doesn't affect JPMS (from org.apache.commons:commons-parent:80).</action>
55+
<action dev="ggregory" type="fix" due-to="Gary Gregory">Deprecate DeferredFileOutputStream.getStream() in favor of getOutputStream().</action>
5556
<!-- ADD -->
5657
<action dev="ggregory" type="add" issue="IO-860" due-to="Nico Strecker, Gary Gregory">Add ThrottledInputStream.Builder.setMaxBytes(long, ChronoUnit).</action>
5758
<action dev="ggregory" type="add" due-to="Gary Gregory">Add IOIterable.</action>

src/main/java/org/apache/commons/io/output/DeferredFileOutputStream.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,9 @@ public Path getPath() {
415415
*
416416
* @return The underlying output stream.
417417
* @throws IOException if an error occurs.
418+
* @deprecated Use {@link #getOutputStream()}.
418419
*/
420+
@Deprecated
419421
@Override
420422
protected OutputStream getStream() throws IOException {
421423
return currentOutputStream;

0 commit comments

Comments
 (0)