Several classes in the `java.security` package lazily compute their hash value and store it in a field. These fields can typically be annotated with the `@Stable` annotation. Many of the current implementations are using -1 as a flag for not computed, this needs to be refactored away.
Here are some examples of such classes: PKCS12Attribute, Timestamp, Certificate, and URICertStoreParameters. ------------- Commit messages: - 8355379: Annotate lazy fields in java.security @Stable - Merge branch 'master' into 8355379 - 8355379: Annotate lazy fields in java.security @Stable Changes: https://git.openjdk.org/jdk/pull/25405/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=25405&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8355379 Stats: 36 lines in 5 files changed: 18 ins; 0 del; 18 mod Patch: https://git.openjdk.org/jdk/pull/25405.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/25405/head:pull/25405 PR: https://git.openjdk.org/jdk/pull/25405