From 20d6f2e6e15e0f723dde471efe2a2c6785c55fe5 Mon Sep 17 00:00:00 2001 From: Jeff Sharkey Date: Fri, 20 Dec 2019 13:58:35 -0700 Subject: [PATCH] Replace import with fully qualified javadoc. Some internal changes are depending more strongly on annotations being "leaves" which don't directly reference other parts of the OS, so replace the direct import of Intent with a qualified javadoc reference. Bug: 144247087 Test: atest --test-mapping packages/providers/MediaProvider Change-Id: I198d84a755b5e270a19b41328f6a6e152112c40a Merged-In: I198d84a755b5e270a19b41328f6a6e152112c40a --- core/java/android/annotation/RequiresPermission.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/core/java/android/annotation/RequiresPermission.java b/core/java/android/annotation/RequiresPermission.java index 59d419f78ee0e..e5c0654f8bbe3 100644 --- a/core/java/android/annotation/RequiresPermission.java +++ b/core/java/android/annotation/RequiresPermission.java @@ -15,8 +15,6 @@ */ package android.annotation; -import android.content.Intent; - import java.lang.annotation.Retention; import java.lang.annotation.Target; @@ -57,7 +55,7 @@ import static java.lang.annotation.RetentionPolicy.SOURCE; *

* When specified on a parameter, the annotation indicates that the method requires * a permission which depends on the value of the parameter. For example, consider - * {@link android.app.Activity#startActivity(Intent)}: + * {@link android.app.Activity#startActivity(android.content.Intent)}: *

{@code
  *   public void startActivity(@RequiresPermission Intent intent) { ... }
  * }