Use new UnsupportedAppUsage annotation.

Existing annotations in libcore/ and frameworks/ will deleted after the migration. This also means that any java library that compiles @UnsupportedAppUsage requires a direct dependency on "unsupportedappusage" java_library.

Bug: 145132366
Test: m && diff unsupportedappusage_index.csv
Change-Id: I547d7fb2e6bc2e9707bbc0d14dc1e8cd632c5a23
This commit is contained in:
Artur Satayev
2019-12-10 17:47:56 +00:00
parent 1d746b2465
commit 74cb719964
105 changed files with 127 additions and 146 deletions

View File

@@ -25,5 +25,8 @@ java_library {
srcs: ["src/**/*.java"],
libs: ["android.test.base"],
libs: [
"android.test.base",
"unsupportedappusage",
],
}

View File

@@ -16,7 +16,7 @@
package android.test;
import android.annotation.UnsupportedAppUsage;
import android.compat.annotation.UnsupportedAppUsage;
import android.content.Context;
import junit.framework.TestCase;

View File

@@ -16,7 +16,7 @@
package android.test;
import android.annotation.UnsupportedAppUsage;
import android.compat.annotation.UnsupportedAppUsage;
import junit.framework.TestCase;

View File

@@ -16,7 +16,7 @@
package junit.framework;
import android.annotation.UnsupportedAppUsage;
import android.compat.annotation.UnsupportedAppUsage;
/**
* Stub only

View File

@@ -16,7 +16,7 @@
package junit.framework;
import android.annotation.UnsupportedAppUsage;
import android.compat.annotation.UnsupportedAppUsage;
import java.lang.reflect.Method;