From 7b9c912f536925ac6ec43935d6e97506851b33d6 Mon Sep 17 00:00:00 2001 From: Tor Norbye Date: Thu, 30 May 2013 16:48:33 -0700 Subject: Add @ResourceInt annotations on APIs Change-Id: I119cc059c2f8bd98fd585fc84ac2b1b7d5892a08 --- core/java/android/util/TypedValue.java | 3 +++ 1 file changed, 3 insertions(+) (limited to 'core/java/android/util') diff --git a/core/java/android/util/TypedValue.java b/core/java/android/util/TypedValue.java index 74d4245..98aaa81 100644 --- a/core/java/android/util/TypedValue.java +++ b/core/java/android/util/TypedValue.java @@ -16,6 +16,8 @@ package android.util; +import android.annotation.AnyRes; + /** * Container for a dynamically typed data value. Primarily used with * {@link android.content.res.Resources} for holding resource values. @@ -178,6 +180,7 @@ public class TypedValue { public int assetCookie; /** If Value came from a resource, this holds the corresponding resource id. */ + @AnyRes public int resourceId; /** If Value came from a resource, these are the configurations for which -- cgit v1.1