Redundant nullable return type: fix false positive with elvis return
#KT-41878 Fixed
This commit is contained in:
committed by
Vladimir Dolzhenko
parent
51d405e950
commit
0e4bd70c29
+10
@@ -8269,6 +8269,11 @@ public class LocalInspectionTestGenerated extends AbstractLocalInspectionTest {
|
||||
runTest("idea/testData/inspectionsLocal/redundantNullableReturnType/function/returnNullableFromLambdaInSingleExpressionBody.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("returnNullableInElvis.kt")
|
||||
public void testReturnNullableInElvis() throws Exception {
|
||||
runTest("idea/testData/inspectionsLocal/redundantNullableReturnType/function/returnNullableInElvis.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("singleExpressionBody.kt")
|
||||
public void testSingleExpressionBody() throws Exception {
|
||||
runTest("idea/testData/inspectionsLocal/redundantNullableReturnType/function/singleExpressionBody.kt");
|
||||
@@ -8312,6 +8317,11 @@ public class LocalInspectionTestGenerated extends AbstractLocalInspectionTest {
|
||||
runTest("idea/testData/inspectionsLocal/redundantNullableReturnType/property/returnNullableFromLambdaInGetter.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("returnNullableInElvis.kt")
|
||||
public void testReturnNullableInElvis() throws Exception {
|
||||
runTest("idea/testData/inspectionsLocal/redundantNullableReturnType/property/returnNullableInElvis.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("var.kt")
|
||||
public void testVar() throws Exception {
|
||||
runTest("idea/testData/inspectionsLocal/redundantNullableReturnType/property/var.kt");
|
||||
|
||||
Reference in New Issue
Block a user