Use Intrinsics.checkNotNullParameter to throw NPE in parameter null checks
Similarly to previous commits, this method was unused, so we're changing its semantics in API version >= 1.4. #KT-22275 In Progress
This commit is contained in:
@@ -3163,6 +3163,11 @@ public class BytecodeTextTestGenerated extends AbstractBytecodeTextTest {
|
||||
runTest("compiler/testData/codegen/bytecodeText/notNullAssertions/assertionForNotNullTypeParam.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("assertionForNotNullTypeParam_1_4.kt")
|
||||
public void testAssertionForNotNullTypeParam_1_4() throws Exception {
|
||||
runTest("compiler/testData/codegen/bytecodeText/notNullAssertions/assertionForNotNullTypeParam_1_4.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("doNotGenerateParamAssertions.kt")
|
||||
public void testDoNotGenerateParamAssertions() throws Exception {
|
||||
runTest("compiler/testData/codegen/bytecodeText/notNullAssertions/doNotGenerateParamAssertions.kt");
|
||||
@@ -3296,6 +3301,11 @@ public class BytecodeTextTestGenerated extends AbstractBytecodeTextTest {
|
||||
runTest("compiler/testData/codegen/bytecodeText/nullCheckOptimization/redundantSafeCall.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("redundantSafeCall_1_4.kt")
|
||||
public void testRedundantSafeCall_1_4() throws Exception {
|
||||
runTest("compiler/testData/codegen/bytecodeText/nullCheckOptimization/redundantSafeCall_1_4.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("reifiedIs.kt")
|
||||
public void testReifiedIs() throws Exception {
|
||||
runTest("compiler/testData/codegen/bytecodeText/nullCheckOptimization/reifiedIs.kt");
|
||||
|
||||
Reference in New Issue
Block a user