RFR: 8345139: Fix bugs and inconsistencies in the Provider services map [v5]
Martin Balao
mbalao at openjdk.org
Wed Apr 2 20:04:55 UTC 2025
On Wed, 26 Feb 2025 00:26:43 GMT, Valerie Peng <valeriep at openjdk.org> wrote:
>> Francisco Ferrari Bihurriet has updated the pull request incrementally with one additional commit since the last revision:
>>
>> Clear ServicesMap fields in the declared order
>>
>> Constructors assign the fields in the same order.
>
> src/java.base/share/classes/java/security/Provider.java line 2071:
>
>> 2069: // For services added to a ServicesMap, their algorithm service key.
>> 2070: // This value derives from the algorithm field. For services (still)
>> 2071: // not added to a ServicesMap, value is null.
>
> The current comment is a bit hard to read.
> How about "The mapping key of this service when added to a `ServiceMap`; null if not yet added to a `ServiceMap`"?
> The value is derived from the type and algorithm and this is straightforward enough that probably need not be commented.
Comment re-written.
> src/java.base/share/classes/java/security/Provider.java line 2110:
>
>> 2108:
>> 2109: /*
>> 2110: * Constructor used from the ServicesMap Legacy API.
>
> nit: "used **by**"? Same goes for other places.
Good.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/22613#discussion_r2025502125
PR Review Comment: https://git.openjdk.org/jdk/pull/22613#discussion_r2025503163
More information about the security-dev
mailing list