Interface Suppressible

All Known Subinterfaces:
BugChecker.AnnotatedTypeTreeMatcher, BugChecker.AnnotationTreeMatcher, BugChecker.ArrayAccessTreeMatcher, BugChecker.ArrayTypeTreeMatcher, BugChecker.AssertTreeMatcher, BugChecker.AssignmentTreeMatcher, BugChecker.BinaryTreeMatcher, BugChecker.BlockTreeMatcher, BugChecker.BreakTreeMatcher, BugChecker.CaseTreeMatcher, BugChecker.CatchTreeMatcher, BugChecker.ClassTreeMatcher, BugChecker.CompilationUnitTreeMatcher, BugChecker.CompoundAssignmentTreeMatcher, BugChecker.ConditionalExpressionTreeMatcher, BugChecker.ContinueTreeMatcher, BugChecker.DoWhileLoopTreeMatcher, BugChecker.EmptyStatementTreeMatcher, BugChecker.EnhancedForLoopTreeMatcher, BugChecker.ExpressionStatementTreeMatcher, BugChecker.ForLoopTreeMatcher, BugChecker.IdentifierTreeMatcher, BugChecker.IfTreeMatcher, BugChecker.ImportTreeMatcher, BugChecker.InstanceOfTreeMatcher, BugChecker.IntersectionTypeTreeMatcher, BugChecker.LabeledStatementTreeMatcher, BugChecker.LambdaExpressionTreeMatcher, BugChecker.LiteralTreeMatcher, BugChecker.MemberReferenceTreeMatcher, BugChecker.MemberSelectTreeMatcher, BugChecker.MethodInvocationTreeMatcher, BugChecker.MethodTreeMatcher, BugChecker.ModifiersTreeMatcher, BugChecker.NewArrayTreeMatcher, BugChecker.NewClassTreeMatcher, BugChecker.ParameterizedTypeTreeMatcher, BugChecker.ParenthesizedTreeMatcher, BugChecker.PrimitiveTypeTreeMatcher, BugChecker.ReturnTreeMatcher, BugChecker.SwitchTreeMatcher, BugChecker.SynchronizedTreeMatcher, BugChecker.ThrowTreeMatcher, BugChecker.TryTreeMatcher, BugChecker.TypeCastTreeMatcher, BugChecker.TypeParameterTreeMatcher, BugChecker.UnaryTreeMatcher, BugChecker.UnionTypeTreeMatcher, BugChecker.VariableTreeMatcher, BugChecker.WhileLoopTreeMatcher, BugChecker.WildcardTreeMatcher
All Known Implementing Classes:
AbstractAsKeyOfSetOrMap, AbstractLockMethodChecker, AbstractMockChecker, AbstractMustBeClosedChecker, AbstractReferenceEquality, AbstractReturnValueIgnored, AbstractToString, AlmostJavadoc, AmbiguousMethodReference, AndroidInjectionBeforeSuper, AndroidJdkLibsChecker, AnnotateFormatMethod, AnnotationPosition, ApiDiffChecker, ArgumentSelectionDefectChecker, ArrayAsKeyOfSetOrMap, ArrayEquals, ArrayFillIncompatibleType, ArrayHashCode, ArraysAsListPrimitiveArray, ArrayToString, AssertEqualsArgumentOrderChecker, AssertFalse, AssertionFailureIgnored, AssertThrowsMultipleStatements, AssignmentToMock, AssistedInjectAndInjectOnConstructors, AssistedInjectAndInjectOnSameConstructor, AssistedInjectScoping, AssistedParameters, AsyncCallableReturnsNull, AsyncFunctionReturnsNull, AutoFactoryAtInject, AutoValueConstructorOrderChecker, AutoValueFinalMethods, AutoValueImmutableFields, AutoValueSubclassLeaked, BadAnnotationImplementation, BadComparable, BadImport, BadInstanceof, BadShiftAmount, BigDecimalEquals, BigDecimalLiteralDouble, BinderIdentityRestoredDangerously, BindingToUnqualifiedCommonType, BooleanParameter, BoxedPrimitiveConstructor, BoxedPrimitiveEquality, BugChecker, BundleDeserializationCast, ByteBufferBackingArray, CacheLoaderNull, CannotMockFinalClass, CanonicalDuration, CatchAndPrintStackTrace, CatchFail, CatchingUnchecked, ChainedAssertionLosesContext, ChainingConstructorIgnoresParameter, CheckedExceptionNotThrown, CheckNotNullMultipleTimes, CheckReturnValue, ClassCanBeStatic, ClassName, ClassNamedLikeTypeParameter, ClassNewInstance, CloseableProvides, CollectionIncompatibleType, CollectionToArraySafeParameter, CollectionUndefinedEquality, CollectorShouldNotUseState, ComparableAndComparator, ComparableType, CompareToZero, ComparingThisWithNull, ComparisonContractViolated, ComparisonOutOfRange, CompatibleWithMisuse, CompileTimeConstantChecker, ComplexBooleanConstant, ComputeIfAbsentAmbiguousReference, ConditionalExpressionNumericPromotion, ConstantField, ConstantOverflow, ConstantPatternCompile, DateChecker, DateFormatConstant, DeadException, DeadThread, DeduplicateConstants, DefaultCharset, DefaultPackage, DepAnn, DescribeMatch, DifferentNameButSame, DiscardedPostfixExpression, DivZero, DoNotCallChecker, DoNotCallSuggester, DoNotMockChecker, DoubleBraceInitialization, DoubleCheckedLocking, DuplicateMapKeys, DurationFrom, DurationGetTemporalUnit, DurationTemporalUnit, DurationToLongTimeUnit, EmptyBlockTag, EmptyCatch, EmptyIfStatement, EmptySetMultibindingContributions, EmptyTopLevelDeclaration, EqualsBrokenForNull, EqualsGetClass, EqualsHashCode, EqualsIncompatibleType, EqualsNaN, EqualsReference, EqualsUnsafeCast, EqualsUsingHashCode, EqualsWrongThing, EscapedEntity, ExpectedExceptionChecker, ExtendingJUnitAssert, ExtendsAutoValue, FallThrough, FieldCanBeFinal, FieldCanBeLocal, FieldCanBeStatic, Finally, FloatCast, FloatingPointAssertionWithinEpsilon, FloatingPointLiteralPrecision, ForEachIterable, FormatString, FormatStringAnnotationChecker, ForOverrideChecker, FragmentInjection, FragmentNotInstantiable, FromTemporalAccessor, FunctionalInterfaceClash, FunctionalInterfaceMethodChanged, FutureReturnValueIgnored, FuturesGetCheckedIllegalExceptionType, FuzzyEqualsShouldNotBeUsedInEqualsMethod, GetClassOnAnnotation, GetClassOnClass, GetClassOnEnum, GuardedByChecker, HardCodedSdCardPath, HashCodeToString, HashtableContains, HidingField, IdentityBinaryExpression, IdentityHashMapBoxing, IdentityHashMapUsage, IgnoredPureGetter, ImmutableAnnotationChecker, ImmutableChecker, ImmutableEnumChecker, ImmutableModification, ImmutableRefactoring, ImplementAssertionWithChaining, Incomparable, IncompatibleArgumentType, IncompatibleModifiersChecker, InconsistentCapitalization, InconsistentHashCode, InconsistentOverloads, IncrementInForLoopAndHeader, IndexOfChar, InexactVarargsConditional, InfiniteRecursion, InheritDoc, InitializeInline, InjectedConstructorAnnotations, InjectOnConstructorOfAbstractClass, InjectOnFinalField, InjectOnMemberAndConstructor, InlineFormatString, InputStreamSlowMultibyteRead, InsecureCipherMode, InstanceOfAndCastMatchWrongType, InstantTemporalUnit, InterfaceWithOnlyStatics, InterruptedExceptionSwallowed, IntLongMath, InvalidBlockTag, InvalidInlineTag, InvalidJavaTimeConstant, InvalidLink, InvalidParam, InvalidPatternSyntax, InvalidTargetingOnScopingAnnotation, InvalidThrows, InvalidThrowsLink, InvalidTimeZoneID, InvalidZoneId, IsInstanceIncompatibleType, IsInstanceOfClass, IsLoggableTagLength, IterableAndIterator, IterablePathParameter, Java7ApiChecker, JavaDurationGetSecondsGetNano, JavaDurationWithNanos, JavaDurationWithSeconds, JavaInstantGetSecondsGetNano, JavaLangClash, JavaLocalDateTimeGetNano, JavaLocalTimeGetNano, JavaPeriodGetDays, JavaTimeDefaultTimeZone, JavaUtilDateChecker, JavaxInjectOnAbstractMethod, JavaxInjectOnFinalField, JdkObsolete, JMockTestWithoutRunWithOrRuleAnnotation, JodaDurationConstructor, JodaDurationWithMillis, JodaInstantWithMillis, JodaNewPeriod, JodaPlusMinusLong, JodaTimeConverterManager, JodaToSelf, JodaWithDurationAddedLong, JUnit3FloatingPointComparisonWithoutDelta, JUnit3TestNotRun, JUnit4ClassAnnotationNonStatic, JUnit4ClassUsedInJUnit3, JUnit4SetUpNotRun, JUnit4TearDownNotRun, JUnit4TestNotRun, JUnitAmbiguousTestClass, JUnitAssertSameCheck, LambdaFunctionalInterface, LiteByteStringUtf8, LiteEnumValueOf, LiteProtoToString, LocalDateTemporalAmount, LockMethodChecker, LockNotBeforeTry, LockOnBoxedPrimitive, LogicalAssignment, LongLiteralLowerCaseSuffix, LoopConditionChecker, LossyPrimitiveCompare, MathAbsoluteRandom, MathRoundIntLong, MemberName, MethodCanBeStatic, MislabeledAndroidString, MissingCasesInEnumSwitch, MissingDefault, MissingFail, MissingOverride, MissingSummary, MissingSuperCall, MissingTestCall, MisusedDateFormat, MisusedDayOfYear, MisusedWeekYear, MixedArrayDimensions, MixedDescriptors, MixedMutabilityReturnType, MockitoUsage, ModifiedButNotUsed, ModifyCollectionInEnhancedForLoop, ModifyingCollectionWithItself, ModifySourceCollectionInStream, MoreThanOneInjectableConstructor, MoreThanOneQualifier, MoreThanOneScopeAnnotationOnClass, MultipleParallelOrSequentialCalls, MultipleTopLevelClasses, MultipleUnaryOperatorsInMethodCall, MultiVariableDeclaration, MustBeClosedChecker, MutableConstantField, MutableMethodReturnType, MutablePublicArray, NarrowingCompoundAssignment, NCopiesOfChar, NestedInstanceOfConditions, NoAllocationChecker, NoFunctionalReturnType, NonAtomicVolatileUpdate, NonCanonicalStaticImport, NonCanonicalStaticMemberImport, NonCanonicalType, NonFinalCompileTimeConstant, NonOverridingEquals, NonRuntimeAnnotation, NullableConstructor, NullablePrimitive, NullableVoid, NullOptional, NullTernary, NumericEquality, ObjectsHashCodePrimitive, ObjectToString, OperatorPrecedence, OptionalEquality, OptionalMapToOptional, OptionalNotPresent, OrphanedFormatString, OutlineNone, OverlappingQualifierAndScopeAnnotation, Overrides, OverridesGuiceInjectableMethod, OverridesJavaxInjectableMethod, OverrideThrowableToString, PackageInfo, PackageLocation, ParameterComment, ParameterName, ParameterNotNullable, ParametersButNotParameterized, ParcelableCreator, PeriodFrom, PeriodGetTemporalUnit, PeriodTimeMath, PreconditionsCheckNotNullRepeated, PreconditionsInvalidPlaceholder, PreferJavaTimeOverload, PrimitiveArrayPassedToVarargsMethod, PrimitiveAtomicReference, PrivateConstructorForNoninstantiableModule, PrivateConstructorForUtilityClass, PrivateSecurityContractProtoAccess, ProtectedMembersInFinalClass, ProtocolBufferOrdinal, ProtoDurationGetSecondsGetNano, ProtoFieldNullComparison, ProtoRedundantSet, ProtosAsKeyOfSetOrMap, ProtoStringFieldReferenceEquality, ProtoTimestampGetSecondsGetNano, ProtoTruthMixedDescriptors, ProvidesMethodOutsideOfModule, ProvidesNull, PublicConstructorForAbstractClass, QualifierOrScopeOnInjectMethod, QualifierWithTypeUse, RandomCast, RandomModInteger, ReachabilityFenceUsage, RectIntersectReturnValueIgnored, RedundantCondition, RedundantOverride, RedundantThrows, ReferenceEquality, RefersToDaggerCodegen, RemoveUnusedImports, RequiredModifiersChecker, RestrictedApiChecker, ReturnFromVoid, ReturnValueIgnored, RxReturnValueIgnored, SameNameButDifferent, ScopeAnnotationOnInterfaceOrAbstractClass, ScopeOnModule, ScopeOrQualifierAnnotationRetention, SelfAssignment, SelfComparison, SelfEquals, ShortCircuitBoolean, ShouldHaveEvenArgs, SizeGreaterThanOrEqualsZero, StaticAssignmentInConstructor, StaticGuardedByInstance, StaticMockMember, StaticOrDefaultInterfaceMethod, StaticQualifiedUsingExpression, StreamResourceLeak, StreamToIterable, StreamToString, StringBuilderInitWithChar, StringEquality, StringSplitter, StronglyTypeTime, SubstringOfZero, SuppressWarningsDeprecated, SuppressWarningsWithoutExplanation, SwigMemoryLeak, SwitchDefault, SynchronizeOnNonFinalField, SystemExitOutsideMain, TemporalAccessorGetChronoField, TestExceptionChecker, TheoryButNoTheories, ThreadJoinLoop, ThreadLocalUsage, ThreadPriorityCheck, ThreeLetterTimeZoneID, ThrowIfUncheckedKnownChecked, ThrowNull, ThrowSpecificExceptions, ThrowsUncheckedException, TimeUnitConversionChecker, TimeUnitMismatch, ToStringReturnsNull, TransientMisuse, TreeToString, TruthAssertExpected, TruthConstantAsserts, TruthGetOrDefault, TruthIncompatibleType, TruthSelfEquals, TryFailRefactoring, TryFailThrowable, TypeEqualsChecker, TypeNameShadowing, TypeParameterNaming, TypeParameterQualifier, TypeParameterShadowing, TypeParameterUnusedInFormals, UndefinedEquals, UnescapedEntity, UngroupedOverloads, UnlockMethodChecker, UnnecessarilyFullyQualified, UnnecessarilyVisible, UnnecessaryAnonymousClass, UnnecessaryBoxedAssignment, UnnecessaryBoxedVariable, UnnecessaryCheckNotNull, UnnecessaryDefaultInEnumSwitch, UnnecessaryLambda, UnnecessaryMethodInvocationMatcher, UnnecessaryParentheses, UnnecessarySetDefault, UnnecessaryStaticImport, UnnecessaryTypeArgument, UnsafeFinalization, UnsafeLocaleUsage, UnsafeReflectiveConstructionCast, UnsynchronizedOverridesSynchronized, UnusedAnonymousClass, UnusedCollectionModifiedInPlace, UnusedException, UnusedMethod, UnusedNestedClass, UnusedVariable, URLEqualsHashCode, UrlInSee, UseBinds, UseCorrectAssertInTests, UseTimeInScope, VarChecker, VariableNameSameAsType, VarTypeName, WaitNotInLoop, WakelockReleasedDangerously, WildcardImport, WithSignatureDiscouraged, WrongOneof, WrongParameterPackage, XorPower

public interface Suppressible
Author:
alexeagle@google.com (Alex Eagle)
  • Method Details

    • allNames

      Set<String> allNames()
      Returns all of the name strings that this checker should respect as part of a @SuppressWarnings annotation.
    • canonicalName

      String canonicalName()
      The canonical name of the check.
    • supportsSuppressWarnings

      boolean supportsSuppressWarnings()
      Returns true if this checker can be suppressed using @SuppressWarnings.
    • customSuppressionAnnotations

      Set<Class<? extends Annotation>> customSuppressionAnnotations()
      Returns the custom suppression annotations for this checker, if custom suppression is used.
    • suppressedByAnyOf

      boolean suppressedByAnyOf​(Set<com.sun.tools.javac.util.Name> annotations, VisitorState s)