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.CheckerError
currentPath, currentRoot, messager, messages, trees
processingEnv
Constructor and Description |
---|
InterningChecker() |
createFactory, createQualifierHierarchy, createQualifierHierarchy, createQualifierHierarchyFactory, createSourceVisitor, createSupportedTypeQualifiers, createTypeHierarchy, getQualifierHierarchy, getSupportedLintOptions, getSupportedTypeQualifiers, getTypeHierarchy, initChecker, invokeConstructorFor
errorAbort, errorAbort, formatStackTrace, fullMessageOf, getLintOption, getLintOption, getMessages, getProcessingEnvironment, getProperties, getSupportedAnnotationTypes, getSupportedOptions, getSupportedSourceVersion, getSuppressWarningsKey, message, report, shouldSkipDefs, shouldSkipDefs, shouldSkipUses, typeProcess, typeProcessingStart
init, process, typeProcessingOver
getCompletions, isInitialized, toString