From d6d8a346cc77b2f3b7acecfe90e1fa70795bcb6f Mon Sep 17 00:00:00 2001 From: Liam Miller-Cushon Date: Fri, 14 Apr 2023 10:48:42 -0700 Subject: [PATCH] Roll forward of https://github.com/google/error-prone/commit/d18f9780cfcf653a32fbaa3d0d8b2ff1491aebb8: Add SettableFuture as a WellKnownThreadSafety type. PiperOrigin-RevId: 524331142 --- .../bugpatterns/threadsafety/WellKnownThreadSafety.java | 1 + 1 file changed, 1 insertion(+) diff --git a/core/src/main/java/com/google/errorprone/bugpatterns/threadsafety/WellKnownThreadSafety.java b/core/src/main/java/com/google/errorprone/bugpatterns/threadsafety/WellKnownThreadSafety.java index 65965aba2cc..910f832f15f 100644 --- a/core/src/main/java/com/google/errorprone/bugpatterns/threadsafety/WellKnownThreadSafety.java +++ b/core/src/main/java/com/google/errorprone/bugpatterns/threadsafety/WellKnownThreadSafety.java @@ -169,6 +169,7 @@ private static ImmutableMap buildThreadSafeClasses( .add("com.google.common.util.concurrent.ListeningScheduledExecutorService") .add("com.google.common.util.concurrent.RateLimiter") .add("com.google.common.util.concurrent.RateObserver") + .add("com.google.common.util.concurrent.SettableFuture", "V") .add("com.google.common.util.concurrent.Striped", "L") .add("com.google.common.cache.LoadingCache", "K", "V") .add("com.google.common.cache.AsyncLoadingCache", "K", "V")