summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
Diffstat (limited to 'core')
-rw-r--r--core/java/android/appwidget/AppWidgetHostView.java2
-rw-r--r--core/java/android/view/LayoutInflater.java3
-rw-r--r--core/java/android/widget/RemoteViews.java2
3 files changed, 4 insertions, 3 deletions
diff --git a/core/java/android/appwidget/AppWidgetHostView.java b/core/java/android/appwidget/AppWidgetHostView.java
index f372529..a1e7e4a 100644
--- a/core/java/android/appwidget/AppWidgetHostView.java
+++ b/core/java/android/appwidget/AppWidgetHostView.java
@@ -58,7 +58,7 @@ public class AppWidgetHostView extends FrameLayout {
// When we're inflating the initialLayout for a AppWidget, we only allow
// views that are allowed in RemoteViews.
static final LayoutInflater.Filter sInflaterFilter = new LayoutInflater.Filter() {
- public boolean onLoadClass(Class<?> clazz) {
+ public boolean onLoadClass(Class clazz) {
return clazz.isAnnotationPresent(RemoteViews.RemoteView.class);
}
};
diff --git a/core/java/android/view/LayoutInflater.java b/core/java/android/view/LayoutInflater.java
index 3e3dbdf..479e757 100644
--- a/core/java/android/view/LayoutInflater.java
+++ b/core/java/android/view/LayoutInflater.java
@@ -97,7 +97,8 @@ public abstract class LayoutInflater {
*
* @return True if this class is allowed to be inflated, or false otherwise
*/
- boolean onLoadClass(Class<?> clazz);
+ @SuppressWarnings("unchecked")
+ boolean onLoadClass(Class clazz);
}
public interface Factory {
diff --git a/core/java/android/widget/RemoteViews.java b/core/java/android/widget/RemoteViews.java
index f1b05e2..fc02acf 100644
--- a/core/java/android/widget/RemoteViews.java
+++ b/core/java/android/widget/RemoteViews.java
@@ -990,7 +990,7 @@ public class RemoteViews implements Parcelable, Filter {
*
* @see android.view.LayoutInflater.Filter#onLoadClass(java.lang.Class)
*/
- public boolean onLoadClass(Class<?> clazz) {
+ public boolean onLoadClass(Class clazz) {
return clazz.isAnnotationPresent(RemoteView.class);
}