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