Class WellKnownThreadSafety
java.lang.Object
com.google.errorprone.bugpatterns.threadsafety.WellKnownThreadSafety
- All Implemented Interfaces:
ThreadSafetyKnownTypes
A collection of types with known thread safety.
-
Nested Class Summary
Nested classes/interfaces inherited from interface ThreadSafetyKnownTypes
ThreadSafetyKnownTypes.MapBuilder -
Method Summary
Modifier and TypeMethodDescriptionstatic WellKnownThreadSafetyfromFlags(ErrorProneFlags flags) com.google.common.collect.ImmutableMap<String, AnnotationInfo> Types that are known to be safe even if they're not annotated with an expected annotation.com.google.common.collect.ImmutableMap<String, AnnotationInfo> com.google.common.collect.ImmutableSet<String> Types that are known to be unsafe and don't need testing.
-
Method Details
-
fromFlags
-
getKnownThreadSafeClasses
-
getKnownSafeClasses
Description copied from interface:ThreadSafetyKnownTypesTypes that are known to be safe even if they're not annotated with an expected annotation.- Specified by:
getKnownSafeClassesin interfaceThreadSafetyKnownTypes
-
getKnownUnsafeClasses
Description copied from interface:ThreadSafetyKnownTypesTypes that are known to be unsafe and don't need testing.- Specified by:
getKnownUnsafeClassesin interfaceThreadSafetyKnownTypes
-