Uses of Class
com.google.errorprone.bugpatterns.threadsafety.AnnotationInfo
Packages that use AnnotationInfo
-
Uses of AnnotationInfo in com.google.errorprone.bugpatterns.threadsafety
Methods in com.google.errorprone.bugpatterns.threadsafety that return AnnotationInfoModifier and TypeMethodDescriptionstatic AnnotationInfo
static AnnotationInfo
ThreadSafety.getInheritedAnnotation
(com.sun.tools.javac.code.Symbol sym, VisitorState state) Gets the possibly inherited marker annotation on the given symbol, and reverse-propagates containerOf spec's from super-classes.ThreadSafety.getMarkerOrAcceptedAnnotation
(com.sun.tools.javac.code.Symbol sym, VisitorState state) Gets theSymbol
's annotation info, either from a marker annotation on the symbol, from an accepted annotation on the symbol, or from the list of well-known types.Methods in com.google.errorprone.bugpatterns.threadsafety that return types with arguments of type AnnotationInfoModifier and TypeMethodDescriptioncom.google.common.collect.ImmutableMap
<String, AnnotationInfo> ThreadSafetyKnownTypes.MapBuilder.build()
com.google.common.collect.ImmutableMap
<String, AnnotationInfo> WellKnownMutability.getKnownImmutableClasses()
com.google.common.collect.ImmutableMap
<String, AnnotationInfo> ThreadSafetyKnownTypes.getKnownSafeClasses()
Types that are known to be safe even if they're not annotated with an expected annotation.com.google.common.collect.ImmutableMap
<String, AnnotationInfo> WellKnownMutability.getKnownSafeClasses()
Deprecated.com.google.common.collect.ImmutableMap
<String, AnnotationInfo> WellKnownThreadSafety.getKnownSafeClasses()
com.google.common.collect.ImmutableMap
<String, AnnotationInfo> WellKnownThreadSafety.getKnownThreadSafeClasses()
Methods in com.google.errorprone.bugpatterns.threadsafety with parameters of type AnnotationInfoModifier and TypeMethodDescriptionThreadSafety.checkSuperInstantiation
(Set<String> containerTypeParameters, AnnotationInfo annotation, com.sun.tools.javac.code.Type type) Check that the super-type of a@ThreadSafe
-annotated type is instantiated with threadsafe type arguments where required by its annotation's containerOf element, and that any type arguments that correspond to containerOf type parameters on the sub-type are also in the super-type's containerOf spec.ThreadSafety.threadSafeInstantiation
(Set<String> containerTypeParameters, AnnotationInfo annotation, com.sun.tools.javac.code.Type type) Check that a type-use of an@ThreadSafe
-annotated type is instantiated with threadsafe type arguments where required by its annotation's containerOf element.ThreadSafety.threadSafeInstantiation
(Set<String> containerTypeParameters, AnnotationInfo annotation, com.sun.tools.javac.code.Type type, Set<com.sun.tools.javac.code.Symbol.TypeVariableSymbol> recursiveThreadSafeTypeParameter) Method parameters in com.google.errorprone.bugpatterns.threadsafety with type arguments of type AnnotationInfoModifier and TypeMethodDescriptionThreadSafetyKnownTypes.MapBuilder.addAll
(com.google.common.collect.ImmutableMap<String, AnnotationInfo> map)
WellKnownMutability.getKnownImmutableClasses()
is clearer if you're dealing with this specific class.