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:
+5
@@ -16429,6 +16429,11 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
|
||||
runTest("compiler/testData/codegen/box/nullCheckOptimization/kt7774.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("parameterNullCheckThrowsNpe_1_4.kt")
|
||||
public void testParameterNullCheckThrowsNpe_1_4() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/nullCheckOptimization/parameterNullCheckThrowsNpe_1_4.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("primitiveCheckWithSideEffect.kt")
|
||||
public void testPrimitiveCheckWithSideEffect() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/nullCheckOptimization/primitiveCheckWithSideEffect.kt");
|
||||
|
||||
Reference in New Issue
Block a user