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:
+5
@@ -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");
|
||||
|
||||
+5
@@ -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");
|
||||
|
||||
+5
@@ -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");
|
||||
|
||||
Generated
+5
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user