Support androidx under-migration-like nullability annotations

They are hardcoded to avoid having dependency from android.jar on
our annotations' jar with UnderMigration.

Even while it could be a compile-only dependency we need to make sure
that annotated types are read properly without RecentlyNonNull/RecentlyNullable
in the classpath

 #KT-24278 Fixed
This commit is contained in:
Denis Zharkov
2018-05-14 17:15:40 +03:00
parent e0f09e5571
commit 9de174959e
10 changed files with 177 additions and 0 deletions
@@ -29,6 +29,11 @@ public class ForeignAnnotationsNoAnnotationInClasspathTestGenerated extends Abst
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/foreignAnnotations/tests"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true);
}
@TestMetadata("androidRecently.kt")
public void testAndroidRecently() throws Exception {
runTest("compiler/testData/foreignAnnotations/tests/androidRecently.kt");
}
@TestMetadata("android_support.kt")
public void testAndroid_support() throws Exception {
runTest("compiler/testData/foreignAnnotations/tests/android_support.kt");
@@ -29,6 +29,11 @@ public class ForeignAnnotationsNoAnnotationInClasspathWithFastClassReadingTestGe
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/foreignAnnotations/tests"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true);
}
@TestMetadata("androidRecently.kt")
public void testAndroidRecently() throws Exception {
runTest("compiler/testData/foreignAnnotations/tests/androidRecently.kt");
}
@TestMetadata("android_support.kt")
public void testAndroid_support() throws Exception {
runTest("compiler/testData/foreignAnnotations/tests/android_support.kt");
@@ -29,6 +29,11 @@ public class ForeignAnnotationsTestGenerated extends AbstractForeignAnnotationsT
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/foreignAnnotations/tests"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true);
}
@TestMetadata("androidRecently.kt")
public void testAndroidRecently() throws Exception {
runTest("compiler/testData/foreignAnnotations/tests/androidRecently.kt");
}
@TestMetadata("android_support.kt")
public void testAndroid_support() throws Exception {
runTest("compiler/testData/foreignAnnotations/tests/android_support.kt");
@@ -29,6 +29,11 @@ public class JavacForeignAnnotationsTestGenerated extends AbstractJavacForeignAn
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/foreignAnnotations/tests"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true);
}
@TestMetadata("androidRecently.kt")
public void testAndroidRecently() throws Exception {
runTest("compiler/testData/foreignAnnotations/tests/androidRecently.kt");
}
@TestMetadata("android_support.kt")
public void testAndroid_support() throws Exception {
runTest("compiler/testData/foreignAnnotations/tests/android_support.kt");