RFR: JDK-8290975 Minor cleanup could be done in javax.security
Mark Powers
mpowers at openjdk.org
Thu Aug 4 20:26:05 UTC 2022
On Thu, 4 Aug 2022 17:02:48 GMT, Bradford Wetmore <wetmore at openjdk.org> wrote:
>> src/java.base/share/classes/javax/security/auth/callback/NameCallback.java line 45:
>>
>>> 43: * @since 1.4
>>> 44: */
>>> 45: private final String prompt;
>>
>> I think you can also mark `defaultName` final.
>
> First constructor doesn't set defaultName (or inputName), so there will be a error "might not have been initialized".
I verified the error message happens when `defaultName` is final.
-------------
PR: https://git.openjdk.org/jdk/pull/9664
More information about the security-dev
mailing list