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, AbstractBanUnsafeAPIChecker, AbstractMockChecker, AbstractMustBeClosedChecker, AbstractPatternSyntaxChecker, AbstractReferenceEquality, AbstractReturnValueIgnored, AbstractToString, AbstractUseSwitch, AddressSelection, AlmostJavadoc, AlreadyChecked, AlwaysThrows, AmbiguousMethodReference, AndroidInjectionBeforeSuper, AndroidJdkLibsChecker, AnnotateFormatMethod, AnnotationMirrorToString, AnnotationPosition, AnnotationValueToString, ApiDiffChecker, ArgumentSelectionDefectChecker, ArrayAsKeyOfSetOrMap, ArrayEquals, ArrayFillIncompatibleType, ArrayHashCode, ArraysAsListPrimitiveArray, ArrayToString, AssertEqualsArgumentOrderChecker, AssertFalse, AssertionFailureIgnored, AssertThrowsMultipleStatements, AssistedInjectAndInjectOnConstructors, AssistedInjectAndInjectOnSameConstructor, AssistedInjectScoping, AssistedParameters, ASTHelpersSuggestions, AsyncCallableReturnsNull, AsyncFunctionReturnsNull, AttemptedNegativeZero, AutoFactoryAtInject, AutoValueBuilderDefaultsInConstructor, AutoValueConstructorOrderChecker, AutoValueFinalMethods, AutoValueImmutableFields, AutoValueSubclassLeaked, AvoidObjectArrays, BadAnnotationImplementation, BadComparable, BadImport, BadInstanceof, BadShiftAmount, BanClassLoader, BanJNDI, BanSerializableRead, BareDotMetacharacter, BigDecimalEquals, BigDecimalLiteralDouble, BinderIdentityRestoredDangerously, BindingToUnqualifiedCommonType, BooleanParameter, BoxedPrimitiveConstructor, BoxedPrimitiveEquality, BugChecker, BugPatternNaming, BuilderReturnThis, BundleDeserializationCast, ByteBufferBackingArray, CacheLoaderNull, CanIgnoreReturnValueSuggester, CannotMockFinalClass, CannotMockMethod, CanonicalDuration, CatchAndPrintStackTrace, CatchFail, CatchingUnchecked, ChainedAssertionLosesContext, ChainingConstructorIgnoresParameter, CharacterGetNumericValue, CheckedExceptionNotThrown, CheckNotNullMultipleTimes, CheckReturnValue, ClassCanBeStatic, ClassInitializationDeadlock, ClassName, ClassNamedLikeTypeParameter, ClassNewInstance, CloseableProvides, ClosingStandardOutputStreams, CollectionIncompatibleType, CollectionToArraySafeParameter, CollectionUndefinedEquality, CollectorShouldNotUseState, ComparableAndComparator, ComparableType, CompareToZero, ComparingThisWithNull, ComparisonContractViolated, ComparisonOutOfRange, CompatibleWithMisuse, CompileTimeConstantChecker, ComplexBooleanConstant, ComputeIfAbsentAmbiguousReference, ConditionalExpressionNumericPromotion, ConstantField, ConstantOverflow, ConstantPatternCompile, DangerousLiteralNullChecker, DateChecker, DateFormatConstant, DeadException, DeadThread, DeduplicateConstants, DefaultCharset, DefaultPackage, DepAnn, DeprecatedVariable, DereferenceWithNullBranch, DifferentNameButSame, DirectInvocationOnMock, DiscardedPostfixExpression, DistinctVarargsChecker, DoNotCallChecker, DoNotCallSuggester, DoNotClaimAnnotations, DoNotMockAutoValue, DoNotMockChecker, DoNotUseRuleChain, DoubleBraceInitialization, DoubleCheckedLocking, DuplicateDateFormatField, DuplicateMapKeys, DurationFrom, DurationGetTemporalUnit, DurationTemporalUnit, DurationToLongTimeUnit, EmptyBlockTag, EmptyCatch, EmptyIfStatement, EmptySetMultibindingContributions, EmptyTopLevelDeclaration, EnumOrdinal, EqualsBrokenForNull, EqualsGetClass, EqualsHashCode, EqualsIncompatibleType, EqualsMissingNullable, EqualsNaN, EqualsNull, EqualsReference, EqualsUnsafeCast, EqualsUsingHashCode, EqualsWrongThing, ErroneousBitwiseExpression, ErroneousThreadPoolConstructorChecker, EscapedEntity, ExpectedExceptionChecker, ExtendingJUnitAssert, ExtendsAutoValue, ExtendsObject, FallThrough, FieldCanBeFinal, FieldCanBeLocal, FieldCanBeStatic, FieldMissingNullable, Finalize, Finally, FloatCast, FloatingPointAssertionWithinEpsilon, FloatingPointLiteralPrecision, FloggerArgumentToString, FloggerFormatString, FloggerLogString, FloggerLogVarargs, FloggerLogWithCause, FloggerMessageFormat, FloggerRedundantIsEnabled, FloggerRequiredModifiers, FloggerSplitLogStatement, FloggerStringConcatenation, FloggerWithCause, FloggerWithoutCause, ForEachIterable, FormatString, FormatStringAnnotationChecker, ForOverrideChecker, FragmentInjection, FragmentNotInstantiable, FromTemporalAccessor, FunctionalInterfaceClash, FunctionalInterfaceMethodChanged, FutureReturnValueIgnored, FuturesGetCheckedIllegalExceptionType, FuzzyEqualsShouldNotBeUsedInEqualsMethod, GetClassOnAnnotation, GetClassOnClass, GetClassOnEnum, GuardedByChecker, HardCodedSdCardPath, HashtableContains, HidingField, ICCProfileGetInstance, IdentityBinaryExpression, IdentityHashMapBoxing, IdentityHashMapUsage, IgnoredPureGetter, ImmutableAnnotationChecker, ImmutableChecker, ImmutableEnumChecker, ImmutableMemberCollection, ImmutableRefactoring, ImmutableSetForContains, ImplementAssertionWithChaining, ImpossibleNullComparison, Incomparable, IncompatibleArgumentType, IncompatibleModifiersChecker, InconsistentCapitalization, InconsistentHashCode, InconsistentOverloads, IncorrectMainMethod, IncrementInForLoopAndHeader, IndexOfChar, InexactVarargsConditional, InfiniteRecursion, InheritDoc, InitializeInline, InjectedConstructorAnnotations, InjectOnBugCheckers, InjectOnConstructorOfAbstractClass, InjectOnFinalField, InjectOnMemberAndConstructor, InlineFormatString, Inliner, InlineTrivialConstant, InputStreamSlowMultibyteRead, InsecureCipherMode, InstanceOfAndCastMatchWrongType, InstantTemporalUnit, InterfaceWithOnlyStatics, InterruptedExceptionSwallowed, Interruption, IntLongMath, InvalidBlockTag, InvalidInlineTag, InvalidJavaTimeConstant, InvalidLink, InvalidParam, InvalidPatternSyntax, InvalidTargetingOnScopingAnnotation, InvalidThrows, InvalidThrowsLink, InvalidTimeZoneID, InvalidZoneId, IsInstanceIncompatibleType, IsInstanceOfClass, IsLoggableTagLength, IterableAndIterator, IterablePathParameter, Java7ApiChecker, Java8ApiChecker, JavaDurationGetSecondsGetNano, JavaDurationWithNanos, JavaDurationWithSeconds, JavaInstantGetSecondsGetNano, JavaLangClash, JavaLocalDateTimeGetNano, JavaLocalTimeGetNano, JavaPeriodGetDays, JavaTimeDefaultTimeZone, JavaUtilDateChecker, JavaxInjectOnAbstractMethod, JavaxInjectOnFinalField, JdkObsolete, JodaConstructors, JodaDateTimeConstants, JodaDurationWithMillis, JodaInstantWithMillis, JodaNewPeriod, JodaPlusMinusLong, JodaTimeConverterManager, JodaToSelf, JodaWithDurationAddedLong, JUnit3FloatingPointComparisonWithoutDelta, JUnit3TestNotRun, JUnit4ClassAnnotationNonStatic, JUnit4ClassUsedInJUnit3, JUnit4SetUpNotRun, JUnit4TearDownNotRun, JUnit4TestNotRun, JUnit4TestsNotRunWithinEnclosed, JUnitAmbiguousTestClass, JUnitAssertSameCheck, JUnitIncompatibleType, JUnitParameterMethodNotFound, LabelledBreakTarget, LambdaFunctionalInterface, LenientFormatStringValidation, LiteByteStringUtf8, LiteEnumValueOf, LiteProtoToString, LocalDateTemporalAmount, LockNotBeforeTry, LockOnBoxedPrimitive, LockOnNonEnclosingClassLiteral, LogicalAssignment, LongDoubleConversion, LongFloatConversion, LongLiteralLowerCaseSuffix, LoopConditionChecker, LoopOverCharArray, LossyPrimitiveCompare, MalformedInlineTag, MathAbsoluteNegative, MathRoundIntLong, MemberName, MemoizeConstantVisitorStateLookups, MethodCanBeStatic, MislabeledAndroidString, MisplacedScopeAnnotations, MissingBraces, MissingCasesInEnumSwitch, MissingDefault, MissingFail, MissingImplementsComparable, MissingOverride, MissingRefasterAnnotation, MissingSummary, MissingSuperCall, MissingTestCall, MisusedDateFormat, MisusedDayOfYear, MisusedWeekYear, MixedArrayDimensions, MixedDescriptors, MixedMutabilityReturnType, MockitoUsage, MockNotUsedInProduction, ModifiedButNotUsed, ModifyCollectionInEnhancedForLoop, ModifyingCollectionWithItself, ModifySourceCollectionInStream, MoreThanOneInjectableConstructor, MoreThanOneQualifier, MoreThanOneScopeAnnotationOnClass, MultimapKeys, MultipleNullnessAnnotations, MultipleParallelOrSequentialCalls, MultipleTopLevelClasses, MultipleUnaryOperatorsInMethodCall, MultiVariableDeclaration, MustBeClosedChecker, MutableGuiceModule, MutablePublicArray, NamedLikeContextualKeyword, NarrowCalculation, NarrowingCompoundAssignment, NCopiesOfChar, NegativeCharLiteral, NestedInstanceOfConditions, NewFileSystem, NoAllocationChecker, NoCanIgnoreReturnValueOnClasses, NonApiType, NonAtomicVolatileUpdate, NonCanonicalStaticImport, NonCanonicalStaticMemberImport, NonCanonicalType, NonFinalCompileTimeConstant, NonFinalStaticField, NonOverridingEquals, NonRuntimeAnnotation, NotJavadoc, NullableConstructor, NullableOnContainingClass, NullableOptional, NullablePrimitive, NullablePrimitiveArray, NullableTypeParameter, NullableVoid, NullableWildcard, NullArgumentForNonNullParameter, NullOptional, NullTernary, ObjectEqualsForPrimitives, ObjectsHashCodePrimitive, ObjectToString, OperatorPrecedence, OptionalEquality, OptionalMapToOptional, OptionalMapUnusedValue, OptionalNotPresent, OptionalOfRedundantMethod, OrphanedFormatString, OutlineNone, OverlappingQualifierAndScopeAnnotation, Overrides, OverridesGuiceInjectableMethod, OverridesJavaxInjectableMethod, OverrideThrowableToString, OverridingMethodInconsistentArgumentNamesChecker, PackageInfo, PackageLocation, ParameterComment, ParameterMissingNullable, ParameterName, ParametersButNotParameterized, ParcelableCreator, PeriodFrom, PeriodGetTemporalUnit, PeriodTimeMath, PreconditionsCheckNotNullRepeated, PreconditionsInvalidPlaceholder, PreferJavaTimeOverload, PreferredInterfaceType, PrimitiveArrayPassedToVarargsMethod, PrimitiveAtomicReference, PrivateConstructorForNoninstantiableModule, PrivateConstructorForUtilityClass, PrivateSecurityContractProtoAccess, ProtectedMembersInFinalClass, ProtoBuilderReturnValueIgnored, ProtocolBufferOrdinal, ProtoDurationGetSecondsGetNano, ProtoStringFieldReferenceEquality, ProtoTimestampGetSecondsGetNano, ProtoTruthMixedDescriptors, ProvidesMethodOutsideOfModule, ProvidesNull, PublicApiNamedStreamShouldReturnStream, QualifierOrScopeOnInjectMethod, QualifierWithTypeUse, RandomCast, RandomModInteger, ReachabilityFenceUsage, RectIntersectReturnValueIgnored, RedundantOverride, RedundantSetterCall, RedundantThrows, ReferenceEquality, RefersToDaggerCodegen, RemoveUnusedImports, RequiredModifiersChecker, RestrictedApiChecker, RethrowReflectiveOperationExceptionAsLinkageError, ReturnAtTheEndOfVoidFunction, ReturnFromVoid, ReturnMissingNullable, ReturnsNullCollection, ReturnValueIgnored, RobolectricShadowDirectlyOn, RxReturnValueIgnored, SameNameButDifferent, ScopeAnnotationOnInterfaceOrAbstractClass, ScopeOnModule, ScopeOrQualifierAnnotationRetention, SelfAlwaysReturnsThis, SelfAssignment, SelfComparison, SelfEquals, ShortCircuitBoolean, ShouldHaveEvenArgs, SizeGreaterThanOrEqualsZero, StatementSwitchToExpressionSwitch, StaticAssignmentInConstructor, StaticAssignmentOfThrowable, StaticGuardedByInstance, StaticMockMember, StaticOrDefaultInterfaceMethod, StaticQualifiedUsingExpression, StreamResourceLeak, StreamToIterable, StreamToString, StringBuilderInitWithChar, StringCaseLocaleUsage, StringCharset, StringFormatWithLiteral, StringSplitter, StronglyTypeByteString, StronglyTypeTime, SubstringOfZero, Suggester, SuperCallToObjectMethod, SuppressWarningsDeprecated, SuppressWarningsWithoutExplanation, SwigMemoryLeak, SwitchDefault, SymbolToString, SynchronizeOnNonFinalField, SystemConsoleNull, SystemExitOutsideMain, SystemOut, TemporalAccessorGetChronoField, TestExceptionChecker, TestParametersNotInitialized, TheoryButNoTheories, ThreadJoinLoop, ThreadLocalUsage, ThreadPriorityCheck, ThreadSafeChecker, ThreeLetterTimeZoneID, ThrowIfUncheckedKnownChecked, ThrowNull, ThrowSpecificExceptions, ThrowsUncheckedException, TimeUnitConversionChecker, TimeUnitMismatch, TooManyParameters, ToStringReturnsNull, TransientMisuse, TreeToString, TruthAssertExpected, TruthConstantAsserts, TruthContainsExactlyElementsInUsage, TruthGetOrDefault, TruthIncompatibleType, TruthSelfEquals, TryFailRefactoring, TryFailThrowable, TryWithResourcesVariable, TypeEqualsChecker, TypeNameShadowing, TypeParameterNaming, TypeParameterQualifier, TypeParameterShadowing, TypeParameterUnusedInFormals, TypeToString, UndefinedEquals, UnescapedEntity, UngroupedOverloads, UnicodeDirectionalityCharacters, UnicodeEscape, UnicodeInCode, UnnecessarilyFullyQualified, UnnecessarilyUsedValue, UnnecessarilyVisible, UnnecessaryAnonymousClass, UnnecessaryAssignment, UnnecessaryAsync, UnnecessaryBoxedAssignment, UnnecessaryBoxedVariable, UnnecessaryCheckNotNull, UnnecessaryDefaultInEnumSwitch, UnnecessaryFinal, UnnecessaryLambda, UnnecessaryLongToIntConversion, UnnecessaryMethodInvocationMatcher, UnnecessaryMethodReference, UnnecessaryOptionalGet, UnnecessaryParentheses, UnnecessarySetDefault, UnnecessaryStaticImport, UnnecessaryStringBuilder, UnnecessaryTestMethodPrefix, UnnecessaryTypeArgument, UnrecognisedJavadocTag, UnsafeFinalization, UnsafeLocaleUsage, UnsafeReflectiveConstructionCast, UnsafeWildcard, UnsynchronizedOverridesSynchronized, UnusedAnonymousClass, UnusedCollectionModifiedInPlace, UnusedException, UnusedLabel, UnusedMethod, UnusedNestedClass, UnusedTypeParameter, UnusedVariable, URLEqualsHashCode, UrlInSee, UseBinds, UseCorrectAssertInTests, UseEnumSwitch, UsingJsr305CheckReturnValue, Validator, VarChecker, VariableNameSameAsType, Varifier, VarTypeName, VoidMissingNullable, WaitNotInLoop, WakelockReleasedDangerously, WildcardImport, WithSignatureDiscouraged, WrongOneof, XorPower, YodaCondition, ZoneIdOfZ

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)