RFR: 8297878: KEM: Implementation [v12]
Weijun Wang
weijun at openjdk.org
Fri Apr 28 01:08:00 UTC 2023
On Thu, 27 Apr 2023 22:53:04 GMT, Anthony Scarpino <ascarpino at openjdk.org> wrote:
> I feel the use of `from` and `to` is error prone. I know I never remember if Arrays.copyOfRange() includes or excludes the `to` index. I think less mistakes would be made if it used `index` and `length` instead.
My feeling is that modern APIs use `from` and `to` instead of `from` and `length`. For example, `Arrays.copyOfRange`, `Arrays.equals` and `Arrays.compare` vs `new String(daata, from, length)`.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/13256#issuecomment-1526824465
More information about the security-dev
mailing list