RFR: JDK-8291509 Minor cleanup could be done in sun.security
Mark Powers
mpowers at openjdk.org
Fri Aug 26 16:03:55 UTC 2022
On Fri, 26 Aug 2022 10:57:48 GMT, Sean Mullan <mullan at openjdk.org> wrote:
>> If I make alternateNames final, then IJ complains "cannot assign a value to final variable".
>> If I make it final and remove initialization, then make complains that alternateNames might not have been initialized.
>
> I would make it final, and then assign it to null in a final else block after line 719.
Fixed. I was also able to make `type` final on line 676.
-------------
PR: https://git.openjdk.org/jdk/pull/9972
More information about the security-dev
mailing list