diff options
author | Tor Norbye <tnorbye@google.com> | 2017-11-17 11:24:39 -0800 |
---|---|---|
committer | Tor Norbye <tnorbye@google.com> | 2017-11-21 10:29:48 -0800 |
commit | e506854dbc4919bf79ca4c705a04d6e225704d3e (patch) | |
tree | 35b931bccf51595861abd23a9260917e91befa35 | |
parent | 91074e9bb05a32d6a1a7cc1b3720ccbe59fe73b9 (diff) | |
download | TV-e506854dbc4919bf79ca4c705a04d6e225704d3e.tar.gz |
@IntDef is switching from long to int values
This cast will be necessary when the @IntDef annotation
values changes type from long to int, and the cast is
safe because the value is itself not used at all (this
is a source retention annotation, and the static analyzer
is using the field reference itself, not the value --
that's the whole point of this annotation.)
Test: The compiler
Change-Id: I5f66e03b62670c4b73ec0339fe63f55a1a76e5d5
-rw-r--r-- | src/com/android/tv/data/PreviewDataManager.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/android/tv/data/PreviewDataManager.java b/src/com/android/tv/data/PreviewDataManager.java index 01a58520..6311a870 100644 --- a/src/com/android/tv/data/PreviewDataManager.java +++ b/src/com/android/tv/data/PreviewDataManager.java @@ -60,7 +60,7 @@ public class PreviewDataManager { * Invalid preview channel ID. */ public static final long INVALID_PREVIEW_CHANNEL_ID = -1; - @IntDef({TYPE_DEFAULT_PREVIEW_CHANNEL, TYPE_RECORDED_PROGRAM_PREVIEW_CHANNEL}) + @IntDef({(int)TYPE_DEFAULT_PREVIEW_CHANNEL, (int)TYPE_RECORDED_PROGRAM_PREVIEW_CHANNEL}) @Retention(RetentionPolicy.SOURCE) public @interface PreviewChannelType{} |