Merge "Make @RequiresPermission RetentionPolicy.CLASS." into sc-dev

This commit is contained in:
TreeHugger Robot
2021-04-15 16:47:03 +00:00
committed by Android (Google) Code Review

View File

@@ -20,7 +20,7 @@ import static java.lang.annotation.ElementType.CONSTRUCTOR;
import static java.lang.annotation.ElementType.FIELD;
import static java.lang.annotation.ElementType.METHOD;
import static java.lang.annotation.ElementType.PARAMETER;
import static java.lang.annotation.RetentionPolicy.SOURCE;
import static java.lang.annotation.RetentionPolicy.CLASS;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;
@@ -76,7 +76,7 @@ import java.lang.annotation.Target;
*
* @hide
*/
@Retention(SOURCE)
@Retention(CLASS)
@Target({ANNOTATION_TYPE,METHOD,CONSTRUCTOR,FIELD,PARAMETER})
public @interface RequiresPermission {
/**