Index: android_webview/java/src/org/chromium/android_webview/AwContents.java |
diff --git a/android_webview/java/src/org/chromium/android_webview/AwContents.java b/android_webview/java/src/org/chromium/android_webview/AwContents.java |
index bfec53f363468fab9954ef9145aa8e88343e9dba..fc456df4a0d89ff83c3ce0ec1e57b8d2fa341ba2 100644 |
--- a/android_webview/java/src/org/chromium/android_webview/AwContents.java |
+++ b/android_webview/java/src/org/chromium/android_webview/AwContents.java |
@@ -828,10 +828,13 @@ public class AwContents { |
// Restore injected JavaScript interfaces. |
for (Map.Entry<String, Pair<Object, Class>> entry : javascriptInterfaces.entrySet()) { |
+ @SuppressWarnings("unchecked") |
+ Class<? extends Annotation> requiredAnnotation = (Class<? extends Annotation>) |
+ entry.getValue().second; |
mContentViewCore.addPossiblyUnsafeJavascriptInterface( |
entry.getValue().first, |
entry.getKey(), |
- entry.getValue().second); |
+ requiredAnnotation); |
} |
} |