Loading core/java/android/annotation/IntRange.java +2 −1 Original line number Diff line number Diff line Loading @@ -18,6 +18,7 @@ package android.annotation; import java.lang.annotation.Retention; import java.lang.annotation.Target; import static java.lang.annotation.ElementType.ANNOTATION_TYPE; import static java.lang.annotation.ElementType.FIELD; import static java.lang.annotation.ElementType.LOCAL_VARIABLE; import static java.lang.annotation.ElementType.METHOD; Loading @@ -38,7 +39,7 @@ import static java.lang.annotation.RetentionPolicy.SOURCE; * @hide */ @Retention(SOURCE) @Target({METHOD,PARAMETER,FIELD,LOCAL_VARIABLE}) @Target({METHOD,PARAMETER,FIELD,LOCAL_VARIABLE,ANNOTATION_TYPE}) public @interface IntRange { /** Smallest value, inclusive */ long from() default Long.MIN_VALUE; Loading Loading
core/java/android/annotation/IntRange.java +2 −1 Original line number Diff line number Diff line Loading @@ -18,6 +18,7 @@ package android.annotation; import java.lang.annotation.Retention; import java.lang.annotation.Target; import static java.lang.annotation.ElementType.ANNOTATION_TYPE; import static java.lang.annotation.ElementType.FIELD; import static java.lang.annotation.ElementType.LOCAL_VARIABLE; import static java.lang.annotation.ElementType.METHOD; Loading @@ -38,7 +39,7 @@ import static java.lang.annotation.RetentionPolicy.SOURCE; * @hide */ @Retention(SOURCE) @Target({METHOD,PARAMETER,FIELD,LOCAL_VARIABLE}) @Target({METHOD,PARAMETER,FIELD,LOCAL_VARIABLE,ANNOTATION_TYPE}) public @interface IntRange { /** Smallest value, inclusive */ long from() default Long.MIN_VALUE; Loading