From f740c7ea0810c186e84e989b72012ed7152a7834 Mon Sep 17 00:00:00 2001 From: Tor Norbye Date: Thu, 16 Nov 2017 14:47:04 -0800 Subject: Switch @IntDef from long to int, and add @LongDef This CL mirrors changes made to the android.support.annotation version of IntDef, to keep the usage and semantics identical (though the internal version of @IntDef and @LongDef are of course hidden and not part of the SDK.) Test: These annotations have source retention and therefore have no runtime impact; the change was compiling the SDK. Change-Id: Idaf47e8d983c88be1bd8f938615c86611014b45a --- core/java/android/annotation/IntDef.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/java/android/annotation/IntDef.java') diff --git a/core/java/android/annotation/IntDef.java b/core/java/android/annotation/IntDef.java index 3f9064e4dd73..637fc1e6afe2 100644 --- a/core/java/android/annotation/IntDef.java +++ b/core/java/android/annotation/IntDef.java @@ -55,7 +55,7 @@ public @interface IntDef { String[] prefix() default ""; /** Defines the allowed constants for this element */ - long[] value() default {}; + int[] value() default {}; /** Defines whether the constants can be used as a flag, or just as an enum (the default) */ boolean flag() default false; -- cgit v1.2.3