Skip to content

Commit

Permalink
WellKnownThreadSafety: Add common PKIX types to known thread-safe list.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 588931468
  • Loading branch information
java-team-github-bot authored and Error Prone Team committed Dec 8, 2023
1 parent ac52ca9 commit a1ef8ae
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,8 @@ private static ImmutableMap<String, AnnotationInfo> buildThreadSafeClasses(
.add(java.util.concurrent.locks.ReadWriteLock.class)
.add(java.util.concurrent.locks.ReentrantLock.class)
.add(java.util.concurrent.locks.ReentrantReadWriteLock.class)
.add(java.security.cert.X509Certificate.class)
.add(java.security.cert.TrustAnchor.class)
.add(java.security.SecureRandom.class)
.add("com.google.common.time.Clock")
.add("com.google.common.time.TimeSource")
Expand Down Expand Up @@ -138,6 +140,8 @@ private static ImmutableMap<String, AnnotationInfo> buildThreadSafeClasses(
.add("kotlinx.coroutines.sync.Mutex")
.add("kotlinx.coroutines.sync.Semaphore")
.add("kotlin.Unit")
.add("org.bouncycastle.cms.CMSSignedData")
.add("org.bouncycastle.pkcs.PKCS10CertificationRequest")
.build();
}

Expand Down

0 comments on commit a1ef8ae

Please sign in to comment.