Fix #KT-12047 (Kotlin Lint: "Missing @JavascriptInterface on methods" does not report anything)

(cherry picked from commit 61e8e01)
(cherry picked from commit dbc54e2)
This commit is contained in:
Yan Zhulanow
2016-05-17 20:40:12 +03:00
parent d1447faf2b
commit 4ee19cce93
3 changed files with 21 additions and 1 deletions
@@ -96,7 +96,7 @@ public class JavaScriptInterfaceDetector extends Detector implements UastScanner
}
UExpression first = node.getValueArguments().get(0);
UElement resolved = node.resolve(context);
UElement resolved = UastUtils.resolveIfCan(first, context);
if (resolved instanceof UVariable) {
// We're passing in a variable to the addJavaScriptInterface method;
// the variable may be of a more generic type than the actual