Migrate DetailsField 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 DetailsField 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: I4e551520fd51c23a60f5d9d561fb23f6f0e93909 Reviewed-on: https://chromium-review.googlesource.com/c/1350901Reviewed-by:Mathias Carlen <mcarlen@chromium.org> Commit-Queue: Marcin Wiącek <marcin@mwiacek.com> Cr-Commit-Position: refs/heads/master@{#611498}
Showing
Please register or sign in to comment