Skip to content

Commit 3195ab0

Browse files
cpovirkError Prone Team
authored and
Error Prone Team
committed
Recognize MethodHandle as immutable.
PiperOrigin-RevId: 539754163
1 parent 7f36856 commit 3195ab0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,7 @@ private static ImmutableMap<String, AnnotationInfo> buildImmutableClasses(
176176
.add("android.net.Uri")
177177
.add("android.util.Size")
178178
.add("java.awt.Color")
179+
.add("java.lang.invoke.MethodHandle")
179180
.add("java.util.AbstractMap$SimpleImmutableEntry", "K", "V")
180181
.add("java.util.Optional", "T")
181182
.add("java.util.OptionalDouble")

0 commit comments

Comments
 (0)