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:
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user