Skip to content

Commit 99357c7

Browse files
committed
Javadoc
1 parent 008983c commit 99357c7

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

src/main/java/org/apache/commons/io/input/ChecksumInputStream.java

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,8 @@ public final class ChecksumInputStream extends CountingInputStream {
4848
* Builds a new {@link ChecksumInputStream}.
4949
*
5050
* <p>
51-
* There is no default {@link Checksum}; you MUST provide one.
51+
* There is no default {@link Checksum}; you MUST provide one. This avoids any issue with a default {@link Checksum} being proven deficient or insecure
52+
* in the future.
5253
* </p>
5354
* <h2>Using NIO</h2>
5455
* <pre>{@code
@@ -99,8 +100,8 @@ public final class ChecksumInputStream extends CountingInputStream {
99100
public static class Builder extends AbstractStreamBuilder<ChecksumInputStream, Builder> {
100101

101102
/**
102-
* There is no default checksum, you MUST provide one. This avoids any issue with a default {@link Checksum}
103-
* being proven deficient or insecure in the future.
103+
* There is no default {@link Checksum}, you MUST provide one. This avoids any issue with a default {@link Checksum} being proven deficient or insecure
104+
* in the future.
104105
*/
105106
private Checksum checksum;
106107

@@ -146,7 +147,8 @@ public ChecksumInputStream get() throws IOException {
146147
}
147148

148149
/**
149-
* Sets the Checksum.
150+
* Sets the Checksum. There is no default {@link Checksum}, you MUST provide one. This avoids any issue with a default {@link Checksum} being proven
151+
* deficient or insecure in the future.
150152
*
151153
* @param checksum the Checksum.
152154
* @return {@code this} instance.

0 commit comments

Comments
 (0)