Skip to content

Commit dc4af3f

Browse files
committed
BaseNCodecOutputStream.eof() should not throw IOException
1 parent c1e5462 commit dc4af3f

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/changes/changes.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ The <action> type attribute can be add,update,fix,remove.
5555
<action dev="ggregory" type="fix" due-to="Arturo Bernal">Avoid use toString() or substring() in favor of a simplified expression #126.</action>
5656
<action issue="CODEC-305" dev="aherbert" type="fix" due-to="Florian">Fix byte-skipping in Base16 decoding #135.</action>
5757
<action dev="kinow" type="fix" due-to="Marc Wrobel">Fix several typos, improve writing in some javadocs #139.</action>
58+
<action dev="ggregory" type="fix" due-to="Gary Gregory">BaseNCodecOutputStream.eof() should not throw IOException.</action>
59+
<action dev="ggregory" type="fix" due-to="Gary Gregory">Javadoc improvements and cleanups.</action>
5860
<!-- ADD -->
5961
<action issue="CODEC-296" dev="mattsicker" type="add" due-to="Matt Sicker">Add support for Blake3 family of hashes.</action>
6062
<action dev="ggregory" type="add">Add github/codeql-action.</action>

src/main/java/org/apache/commons/codec/binary/BaseNCodecOutputStream.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,11 +82,9 @@ public void close() throws IOException {
8282
/**
8383
* Writes EOF.
8484
*
85-
* @throws IOException
86-
* if an I/O error occurs.
8785
* @since 1.11
8886
*/
89-
public void eof() throws IOException {
87+
public void eof() {
9088
// Notify encoder of EOF (-1).
9189
if (doEncode) {
9290
baseNCodec.encode(singleByte, 0, EOF, context);

0 commit comments

Comments
 (0)