Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1274)

Unified Diff: android_webview/java/src/org/chromium/android_webview/AwContents.java

Issue 421213004: Fixed Compilation Warnings from Aw Files. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | android_webview/java/src/org/chromium/android_webview/FullScreenView.java » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
}
}
« no previous file with comments | « no previous file | android_webview/java/src/org/chromium/android_webview/FullScreenView.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698