Uses of Record Class
com.google.errorprone.bugpatterns.threadsafety.ThreadSafety.Violation
Packages that use ThreadSafety.Violation
-
Uses of ThreadSafety.Violation in com.google.errorprone.bugpatterns.threadsafety
Methods in com.google.errorprone.bugpatterns.threadsafety that return ThreadSafety.ViolationModifier and TypeMethodDescriptionstatic ThreadSafety.ViolationThreadSafety.Violation.absent()An empty explanation.ImmutableAnalysis.checkForImmutability(Optional<ClassTree> tree, com.google.common.collect.ImmutableSet<String> immutableTyParams, com.sun.tools.javac.code.Type.ClassType type, ImmutableAnalysis.ViolationReporter reporter) Check that an@Immutable-annotated class:ThreadSafeAnalysis.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:ThreadSafety.checkInstantiation(com.sun.tools.javac.code.Symbol.TypeVariableSymbol typeParameter, Collection<com.sun.tools.javac.code.Type> instantiations) Checks that any thread-safe type parameters are instantiated with thread-safe types.ThreadSafety.checkInstantiation(Collection<com.sun.tools.javac.code.Symbol.TypeVariableSymbol> typeParameters, Collection<com.sun.tools.javac.code.Type> typeArguments) ImmutableAnalysis.checkInvocation(com.sun.tools.javac.code.Type methodType, com.sun.tools.javac.code.Symbol symbol) ThreadSafeAnalysis.checkInvocation(com.sun.tools.javac.code.Type methodType, com.sun.tools.javac.code.Symbol symbol) ThreadSafety.checkInvocation(com.sun.tools.javac.code.Type methodType, com.sun.tools.javac.code.Symbol symbol) Checks the instantiation of any thread-safe type parameters in the current invocation.ThreadSafety.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.static ThreadSafety.ViolationThreadSafety.isThreadSafeType(boolean allowContainerTypeParameters, Set<String> containerTypeParameters, com.sun.tools.javac.code.Type type) Returns anThreadSafety.Violationexplaining whether the type is threadsafe.static ThreadSafety.ViolationCreates an explanation with one step.Adds a step.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) Methods in com.google.errorprone.bugpatterns.threadsafety with parameters of type ThreadSafety.ViolationModifier and TypeMethodDescriptionImmutableAnalysis.ViolationReporter.describe(Tree tree, ThreadSafety.Violation info) default DescriptionImmutableAnalysis.ViolationReporter.report(Tree tree, ThreadSafety.Violation info, Optional<SuggestedFix> suggestedFix)