public final class InterningChecker extends BaseTypeChecker
Interned qualifier that
finds (and verifies the absence of) equality-testing and interning errors.
The Interned annotation indicates that a variable
refers to the canonical instance of an object, meaning that it is safe to
compare that object using the "==" operator. This plugin warns whenever
"==" is used in cases where one or both operands are not
Interned. Optionally, it suggests using "=="
instead of ".equals" where possible.
SourceChecker.CheckerErrorcurrentPath, currentRoot, messager, messages, treesprocessingEnv| Constructor and Description |
|---|
InterningChecker() |
createFactory, createQualifierHierarchy, createQualifierHierarchy, createQualifierHierarchyFactory, createSourceVisitor, createSupportedTypeQualifiers, createTypeHierarchy, getQualifierHierarchy, getSupportedLintOptions, getSupportedTypeQualifiers, getTypeHierarchy, initChecker, invokeConstructorForerrorAbort, errorAbort, formatStackTrace, fullMessageOf, getLintOption, getLintOption, getMessages, getProcessingEnvironment, getProperties, getSupportedAnnotationTypes, getSupportedOptions, getSupportedSourceVersion, getSuppressWarningsKey, message, report, shouldSkipDefs, shouldSkipDefs, shouldSkipUses, typeProcess, typeProcessingStartinit, process, typeProcessingOvergetCompletions, isInitialized, toString