Skip to content

Commit 960e04b

Browse files
java-team-github-botError Prone Team
authored andcommitted
Add gRPC's AbstractStub to WellKnownThreadSafety for EP and AL
PiperOrigin-RevId: 915431942
1 parent 8d4c117 commit 960e04b

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@ private static ImmutableMap<String, AnnotationInfo> buildThreadSafeClasses(
131131
.add("io.reactivex.Single", "T")
132132
.add("io.reactivex.Flowable", "T")
133133
.add(Throwable.class) // Unsafe due to initCause, but generally used across threads
134+
.add("io.grpc.stub.AbstractStub")
134135
.add("java.lang.ThreadLocal")
135136
.add("java.lang.invoke.MethodHandle")
136137
.add(java.lang.reflect.Method.class)

0 commit comments

Comments
 (0)