Migrate ChipStyle to @IntDef
@IntDef annotation are preferred way for declaring set of int values. 1. they need less space in APK than enum, see https://developer.android.com/topic/performance/reduce-apk-size#remove-enums 2. they give more control over allowed values than "static final" values Main goal of patch is replacing ChipStyle enum to the style common with other @IntDef: 1. with @IntDef first, @Retention second and related @interface third 2. with values inside @interface 3. with @Retention(RetentionPolicy.SOURCE) 4. without "static final" in the @interface Change-Id: I19e43717e9ddf46efc3978d25ed2f2d698a204d8 Reviewed-on: https://chromium-review.googlesource.com/c/1338620 Commit-Queue: Marcin Wiącek <marcin@mwiacek.com> Reviewed-by:Rouslan Solomakhin <rouslan@chromium.org> Cr-Commit-Position: refs/heads/master@{#609115}
Showing
Please register or sign in to comment