RFR: JDK-8291509 Minor cleanup could be done in sun.security [v8]
Mark Powers
mpowers at openjdk.org
Wed Sep 14 21:40:12 UTC 2022
On Wed, 14 Sep 2022 19:44:52 GMT, Weijun Wang <weijun at openjdk.org> wrote:
>> Fixed. Throwing exception sooner rather than later.
>
> Some final comments.
>
> 1. Move the definition of `namedParams` inside the if block it is used and merge with the assignment line.
> 2. Change `if (ecParams == null)` to `else`, and then there is no need to assign an initial value to `namedGroup`.
Fixed.
-------------
PR: https://git.openjdk.org/jdk/pull/9972
More information about the security-dev
mailing list