diff options
| author | Tor Norbye <tnorbye@google.com> | 2017-11-16 14:47:04 -0800 |
|---|---|---|
| committer | Tor Norbye <tnorbye@google.com> | 2017-12-08 20:54:50 -0800 |
| commit | f740c7ea0810c186e84e989b72012ed7152a7834 (patch) | |
| tree | 9825df6e0720f80dcf4bbee485283d1236c05583 /core/java/android/annotation/IntDef.java | |
| parent | 15ee5ebf75acb6b5d3f1b65b2ca90169ce319b29 (diff) | |
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
Diffstat (limited to 'core/java/android/annotation/IntDef.java')
| -rw-r--r-- | core/java/android/annotation/IntDef.java | 2 |
1 files changed, 1 insertions, 1 deletions
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; |
