Skip to content

Commit 9a35bb0

Browse files
committed
Merge branch 'pr-368'
This closes #368
2 parents 166dea3 + 45c1609 commit 9a35bb0

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

src/changes/changes.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,9 @@ The <action> type attribute can be add,update,fix,remove.
189189
<action dev="ggregory" type="fix" due-to="Marc Wrobel">
190190
Fix minor typos #367
191191
</action>
192+
<action issue="IO-776" dev="kinow" type="fix" due-to="Chris Povirk">
193+
Fix parameters to requireNonNull call in DeferredOutputSteam #368.
194+
</action>
192195
<!-- ADD -->
193196
<action type="add" dev="ggregory" due-to="Gary Gregory">
194197
Add GitHub coverage.yml.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ public DeferredFileOutputStream(final int threshold, final int initialBufferSize
141141
public DeferredFileOutputStream(final int threshold, final int initialBufferSize, final String prefix,
142142
final String suffix, final File directory) {
143143
this(threshold, null, prefix, suffix, directory, initialBufferSize);
144-
Objects.requireNonNull("prefix", prefix);
144+
Objects.requireNonNull(prefix, "prefix");
145145
if (initialBufferSize < 0) {
146146
throw new IllegalArgumentException("Initial buffer size must be at least 0.");
147147
}

0 commit comments

Comments
 (0)