Minor: rename NoTraverse to LeafUElement

This commit is contained in:
Yan Zhulanow
2016-03-29 22:26:37 +03:00
parent c1e59e4957
commit 7ed5b6c10b
11 changed files with 18 additions and 14 deletions
@@ -125,7 +125,11 @@ public class SharedPrefsDetector extends Detector implements UastScanner {
} else {
if (!verifiedType) {
UType type = definition.getType();
String possiblefqName = type.resolveOrEmpty(context).getFqNameOrName();
UClass clazz = type.resolveOrEmpty(context);
String possiblefqName = clazz.getFqName();
if (possiblefqName == null) {
possiblefqName = clazz.getName();
}
if (possiblefqName.endsWith("SharedPreferences.Editor")) { //$NON-NLS-1$
if (!type.matchesFqName("Editor") || //$NON-NLS-1$
!LintUtils.isImported(context.getLintContext().getCompilationUnit(),