Skip to content

Commit

Permalink
Add kotlin Result to WellKnownThreadSafety -[]
Browse files Browse the repository at this point in the history
`Result<T>` is an immutable wrapper over a `T` in the case of success, or `Throwable` in the case of an error.

Kotlin docs - https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-result/

TAP train - []

PiperOrigin-RevId: 655230537
  • Loading branch information
java-team-github-bot authored and Error Prone Team committed Jul 23, 2024
1 parent fefeef9 commit f97736d
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ private static ImmutableMap<String, AnnotationInfo> buildThreadSafeClasses(
.add("kotlinx.coroutines.flow.MutableStateFlow", "T")
.add("kotlinx.coroutines.sync.Mutex")
.add("kotlinx.coroutines.sync.Semaphore")
.add("kotlin.Result", "T")
.add("kotlin.Unit")
.add("org.bouncycastle.cms.CMSSignedData")
.add("org.bouncycastle.pkcs.PKCS10CertificationRequest")
Expand Down

0 comments on commit f97736d

Please sign in to comment.