RFR: JDK-8290975 Minor cleanup could be done in javax.security [v2]

Bradford Wetmore wetmore at openjdk.org
Fri Aug 5 17:38:18 UTC 2022


On Fri, 5 Aug 2022 14:09:18 GMT, Mark Powers <mpowers at openjdk.org> wrote:

>> Yes but `defaultName` (like `prompt`) should never change once the object is constructed. So it seems inconsistent not to also mark it final (and if necessary, set it to a default value (`null`) in the constructors).
>
> Agreed. I'll make the change.

That works also, as the API allows for these values to be set/reset to null.  Can't do the same for inputName, as that can be set later.

-------------

PR: https://git.openjdk.org/jdk/pull/9664


More information about the security-dev mailing list