RFR: 6587699: Document DigestInputStream behavior when skip() or mark() / reset() is used [v2]

Weijun Wang weijun at openjdk.org
Thu Jul 28 22:32:50 UTC 2022


On Thu, 28 Jul 2022 21:48:25 GMT, Joe Darcy <darcy at openjdk.org> wrote:

>> My feeling still remains.  I don't recall seeing a wording construction like this except for IFF, which is well-understood.  I think it could be said more compactly with:
>> 
>> `This implementation only updates the message digest with data actually read from the input stream when it is on. `
>> 
>> Just my $0.02.
>
> For your consideration, something like:
>  "... This implementation will update the message digest if and only if the stream is on ...."

I'll choose Brad's suggestion. The "if and only if" is for "data read from" which is a noun instead of a clause. Thanks all.

-------------

PR: https://git.openjdk.org/jdk/pull/9667


More information about the security-dev mailing list