Skip to content

Commit 581b44f

Browse files
committed
DeferredFileOutputStream now clears and deletes its temporary storage by
default (#858) To get the old behavior back, call org.apache.commons.io.output.DeferredFileOutputStream.Builder.setDeleteTempFileOnClose(false) - Add DeferredFileOutputStream.Builder.setDeleteTempFileOnClose(boolean) - Add PathUtils.clear[IfExists](Path) - Add PathUtils.deleteIfExists(Path) - Update generic type of RandomAccessFileMode.accept(Path, IOConsumer) from IOConsumer<RandomAccessFile> to IOConsumer<IORandomAccessFile> - Harden tests for NPEs on failures, happy path unchanged.
1 parent 25114c8 commit 581b44f

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/changes/changes.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,17 @@ The <action> type attribute can be add,update,fix,remove.
5555
<action type="fix" dev="ggregory" due-to="Gary Gregory">BufferedFileChannelInputStream now clears its direct memory byte buffer on close (#855).</action>
5656
<action type="fix" dev="ggregory" due-to="Gary Gregory">MemoryMappedFileInputStream now clears its direct memory byte buffer on close (#855).</action>
5757
<action type="fix" dev="ggregory" due-to="Sarankumar Baskar" issue="IO-855">Clarify PeekableInputStream.peek() behavior in Javadoc (#856).</action>
58+
<action type="fix" dev="ggregory" due-to="Gary Gregory">DeferredFileOutputStream now clears and deletes its temporary storage by default (#858).</action>
59+
<action type="fix" dev="ggregory" due-to="Gary Gregory">Update generic type of RandomAccessFileMode.accept(Path, IOConsumer) from IOConsumer&lt;RandomAccessFile&gt; to IOConsumer&lt;IORandomAccessFile&gt;.</action>
60+
<action type="fix" dev="ggregory" due-to="Gary Gregory">Harden tests for NPEs on failures, happy path unchanged.</action>
5861
<!-- ADD -->
5962
<action type="add" dev="ggregory" due-to="Gary Gregory">Add IOConsumer.accept(IOConsumer, T) (#846).</action>
6063
<action type="add" dev="ggregory" due-to="Gary Gregory">Add UnsynchronizedBufferedReader.unwrap() (#850).</action>
6164
<action type="add" dev="ggregory" due-to="Gary Gregory">Add UnsynchronizedBufferedReader.getPosition() (#851).</action>
6265
<action type="add" dev="ggregory" due-to="Gary Gregory">Add Buffers clear() methods (#853).</action>
66+
<action type="add" dev="ggregory" due-to="Gary Gregory">Add DeferredFileOutputStream.Builder.setDeleteTempFileOnClose(boolean) (#858).</action>
67+
<action type="add" dev="ggregory" due-to="Gary Gregory">Add PathUtils.clear[IfExists](Path) (#858).</action>
68+
<action type="add" dev="ggregory" due-to="Gary Gregory">Add PathUtils.deleteIfExists(Path) (#858).</action>
6369
<!-- UPDATE -->
6470
<action type="update" dev="ggregory" due-to="Gary Gregory">Bump org.apache.commons:commons-parent from 98 to 102 (#849).</action>
6571
<action type="update" dev="ggregory" due-to="Gary Gregory">[test] Bump commons-codec:commons-codec from 1.21.0 to 1.22.0.</action>

0 commit comments

Comments
 (0)