RFR: 8209038: Clarify the javadoc of Cipher.getParameters()
Valerie Peng
valeriep at openjdk.java.net
Wed Apr 13 21:57:19 UTC 2022
On Wed, 13 Apr 2022 07:01:19 GMT, Xue-Lei Andrew Fan <xuelei at openjdk.org> wrote:
>> How about this then?
>>
>> * <p>The returned parameters may be the same that were used to initialize
>> * this cipher, or may contain additional default and random parameter
>> * values used by the underlying cipher implementation if this
>> * cipher can successfully generate the required parameter values when
>> * not supplied. Otherwise, {@code null} is returned.
>
> I like the revised spec more.
>
> BTW, for "... contain additional default and random parameter values ...", is "or" more common than "and" in English?
Hmm, the original javadoc has "and", so I just picked it up. Perhaps I should change it to "or" then. Thanks.
-------------
PR: https://git.openjdk.java.net/jdk/pull/8117
More information about the security-dev
mailing list