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:
@@ -25,5 +25,8 @@ java_library {
|
||||
|
||||
srcs: ["src/**/*.java"],
|
||||
|
||||
libs: ["android.test.base"],
|
||||
libs: [
|
||||
"android.test.base",
|
||||
"unsupportedappusage",
|
||||
],
|
||||
}
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
|
||||
package android.test;
|
||||
|
||||
import android.annotation.UnsupportedAppUsage;
|
||||
import android.compat.annotation.UnsupportedAppUsage;
|
||||
import android.content.Context;
|
||||
|
||||
import junit.framework.TestCase;
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
|
||||
package android.test;
|
||||
|
||||
import android.annotation.UnsupportedAppUsage;
|
||||
import android.compat.annotation.UnsupportedAppUsage;
|
||||
|
||||
import junit.framework.TestCase;
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
|
||||
package junit.framework;
|
||||
|
||||
import android.annotation.UnsupportedAppUsage;
|
||||
import android.compat.annotation.UnsupportedAppUsage;
|
||||
|
||||
/**
|
||||
* Stub only
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
|
||||
package junit.framework;
|
||||
|
||||
import android.annotation.UnsupportedAppUsage;
|
||||
import android.compat.annotation.UnsupportedAppUsage;
|
||||
|
||||
import java.lang.reflect.Method;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user