Class ThreadSafeAnalysis
java.lang.Object
com.google.errorprone.bugpatterns.threadsafety.ThreadSafeAnalysis
Analyzes types for deep thread safety.
- 
Nested Class SummaryNested Classes
- 
Method SummaryModifier and TypeMethodDescriptioncheckForThreadSafety(Optional<ClassTree> tree, com.google.common.collect.ImmutableSet<String> threadSafeTypeParams, com.sun.tools.javac.code.Type.ClassType type) Check that an@ThreadSafe-annotated class: does not declare or inherit any fields which are not thread safe, any threadsafe supertypes are instantiated with threadsafe type arguments as required by their containerOf spec, and any enclosing instances are threadsafe.checkInvocation(com.sun.tools.javac.code.Type methodType, com.sun.tools.javac.code.Symbol symbol) com.google.common.collect.ImmutableSet<String> threadSafeTypeParametersInScope(com.sun.tools.javac.code.Symbol sym) 
- 
Method Details- 
checkInvocationpublic ThreadSafety.Violation checkInvocation(com.sun.tools.javac.code.Type methodType, com.sun.tools.javac.code.Symbol symbol) 
- 
checkForThreadSafetypublic ThreadSafety.Violation checkForThreadSafety(Optional<ClassTree> tree, com.google.common.collect.ImmutableSet<String> threadSafeTypeParams, com.sun.tools.javac.code.Type.ClassType type) Check that an@ThreadSafe-annotated class:- does not declare or inherit any fields which are not thread safe,
- any threadsafe supertypes are instantiated with threadsafe type arguments as required by their containerOf spec, and
- any enclosing instances are threadsafe.
 
- 
threadSafeTypeParametersInScopepublic com.google.common.collect.ImmutableSet<String> threadSafeTypeParametersInScope(com.sun.tools.javac.code.Symbol sym) 
 
-