Skip to content

Commit e60e010

Browse files
committed
Fix Javadoc for ChunkedOutputStream.Builder
1 parent 2d10582 commit e60e010

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

src/changes/changes.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ The <action> type attribute can be add,update,fix,remove.
7070
<action dev="ggregory" type="fix" issue="IO-873" due-to="Gary Gregory">java.lang.ArithmeticException: long overflow java.lang.Math.addExact(Math.java:932) at org.apache.commons.io.file.attribute.FileTimes.ntfsTimeToFileTime(FileTimes.java:164). See also https://issues.apache.org/jira/browse/MDEP-978.</action>
7171
<action dev="ggregory" type="fix" issue="IO-873" due-to="Gary Gregory">java.lang.ArithmeticException: long overflow java.lang.Math.addExact(Math.java:932) at org.apache.commons.io.file.attribute.FileTimes.ntfsTimeToDate(long).</action>
7272
<action dev="ggregory" type="fix" due-to="Gary Gregory">FileTimes.toNtfsTime(*) methods can overflow result values.</action>
73+
<action dev="ggregory" type="fix" due-to="Gary Gregory">Fix Javadoc for ChunkedOutputStream.Builder.</action>
7374
<!-- ADD -->
7475
<action dev="ggregory" type="add" issue="IO-860" due-to="Nico Strecker, Gary Gregory">Add ThrottledInputStream.Builder.setMaxBytes(long, ChronoUnit).</action>
7576
<action dev="ggregory" type="add" due-to="Gary Gregory">Add IOIterable.</action>

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

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@ public class ChunkedOutputStream extends FilterOutputStream {
4343
* Using File IO:
4444
* </p>
4545
* <pre>{@code
46-
* UnsynchronizedByteArrayOutputStream s = UnsynchronizedByteArrayOutputStream.builder()
46+
* ChunkedOutputStream s = ChunkedOutputStream.builder()
47+
* .setPath("over/there.out")
4748
* .setBufferSize(8192)
4849
* .get();
4950
* }
@@ -52,7 +53,8 @@ public class ChunkedOutputStream extends FilterOutputStream {
5253
* Using NIO Path:
5354
* </p>
5455
* <pre>{@code
55-
* UnsynchronizedByteArrayOutputStream s = UnsynchronizedByteArrayOutputStream.builder()
56+
* ChunkedOutputStream s = ChunkedOutputStream.builder()
57+
* .setPath("over/there.out")
5658
* .setBufferSize(8192)
5759
* .get();
5860
* }
@@ -72,7 +74,7 @@ public Builder() {
7274
}
7375

7476
/**
75-
* Builds a new {@link UnsynchronizedByteArrayOutputStream}.
77+
* Builds a new {@link ChunkedOutputStream}.
7678
* <p>
7779
* This builder uses the following aspects:
7880
* </p>

0 commit comments

Comments
 (0)