Integrated: 8344024: Unnecessary Hashtable usage in RSAPSSSignature.DIGEST_LENGTHS
Andrey Turbanov
aturbanov at openjdk.org
Tue Nov 19 17:03:52 UTC 2024
On Fri, 1 Nov 2024 12:15:36 GMT, Andrey Turbanov <aturbanov at openjdk.org> wrote:
> The field `sun.security.rsa.RSAPSSSignature#DIGEST_LENGTHS` is modified only in `<clinit>`. It means we can use Immutable Map instead of Hashtable.
> Hashtable is legacy synchronized class, which have `synchronized` on its `get` method. It's not needed in our case.
This pull request has now been integrated.
Changeset: 78602be1
Author: Andrey Turbanov <aturbanov at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/78602be1fe6803503d4382cc9797ec70ee49eba6
Stats: 17 lines in 1 file changed: 0 ins; 2 del; 15 mod
8344024: Unnecessary Hashtable usage in RSAPSSSignature.DIGEST_LENGTHS
Reviewed-by: valeriep
-------------
PR: https://git.openjdk.org/jdk/pull/21823
More information about the security-dev
mailing list