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 com.google.errorprone.bugpatterns.threadsafety.ThreadSafetyKnownTypes
ThreadSafetyKnownTypes.MapBuilder
-
Method Summary
Modifier and TypeMethodDescriptionstatic WellKnownThreadSafety
fromFlags
(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:ThreadSafetyKnownTypes
Types that are known to be safe even if they're not annotated with an expected annotation.- Specified by:
getKnownSafeClasses
in interfaceThreadSafetyKnownTypes
-
getKnownUnsafeClasses
Description copied from interface:ThreadSafetyKnownTypes
Types that are known to be unsafe and don't need testing.- Specified by:
getKnownUnsafeClasses
in interfaceThreadSafetyKnownTypes
-