Class WellKnownThreadSafety
java.lang.Object
com.google.errorprone.bugpatterns.threadsafety.WellKnownThreadSafety
- All Implemented Interfaces:
ThreadSafety.KnownTypes
public final class WellKnownThreadSafety extends Object implements ThreadSafety.KnownTypes
A collection of types with known thread safety.
-
Constructor Summary
Constructors Constructor Description WellKnownThreadSafety(ErrorProneFlags flags, WellKnownMutability wellKnownMutability)
-
Method Summary
Modifier and Type Method Description static WellKnownThreadSafety
fromFlags(ErrorProneFlags flags)
Map<String,AnnotationInfo>
getKnownSafeClasses()
Types that are known to be safe even if they're not annotated with an expected annotation.Map<String,AnnotationInfo>
getKnownThreadSafeClasses()
Set<String>
getKnownUnsafeClasses()
Types that are known to be unsafe and don't need testing.
-
Constructor Details
-
WellKnownThreadSafety
@Inject public WellKnownThreadSafety(ErrorProneFlags flags, WellKnownMutability wellKnownMutability)
-
-
Method Details
-
fromFlags
-
getKnownThreadSafeClasses
-
getKnownSafeClasses
Description copied from interface:ThreadSafety.KnownTypes
Types that are known to be safe even if they're not annotated with an expected annotation.- Specified by:
getKnownSafeClasses
in interfaceThreadSafety.KnownTypes
-
getKnownUnsafeClasses
Description copied from interface:ThreadSafety.KnownTypes
Types that are known to be unsafe and don't need testing.- Specified by:
getKnownUnsafeClasses
in interfaceThreadSafety.KnownTypes
-