Skip to content

Commit ae3a19f

Browse files
java-team-github-botError Prone Team
authored and
Error Prone Team
committed
Add some known thread safe types to[]
These types are already in [] TAP train ticket - [] PiperOrigin-RevId: 607088877
1 parent 4f060e1 commit ae3a19f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

core/src/main/java/com/google/errorprone/bugpatterns/threadsafety/WellKnownThreadSafety.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,11 @@ private static ImmutableMap<String, AnnotationInfo> buildThreadSafeClasses(
142142
.add("kotlinx.coroutines.CoroutineDispatcher")
143143
.add("kotlinx.coroutines.CoroutineScope")
144144
.add("kotlinx.coroutines.ExecutorCoroutineDispatcher")
145+
.add("kotlinx.coroutines.flow.Flow", "T")
146+
.add("kotlinx.coroutines.flow.SharedFlow", "T")
147+
.add("kotlinx.coroutines.flow.MutableSharedFlow", "T")
148+
.add("kotlinx.coroutines.flow.StateFlow", "T")
149+
.add("kotlinx.coroutines.flow.MutableStateFlow", "T")
145150
.add("kotlinx.coroutines.sync.Mutex")
146151
.add("kotlinx.coroutines.sync.Semaphore")
147152
.add("kotlin.Unit")

0 commit comments

Comments
 (0)