From 803a5d18cbdb2fbd6f670fdf80bc8250f803ddf9 Mon Sep 17 00:00:00 2001 From: peter Date: Mon, 8 Dec 2014 20:45:34 +0100 Subject: [PATCH] nullity inference: a more self-explanatory "test delegation to nullable means nothing" --- .../codeInspection/NullityInferenceFromSourceTestCase.groovy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java/java-tests/testSrc/com/intellij/codeInspection/NullityInferenceFromSourceTestCase.groovy b/java/java-tests/testSrc/com/intellij/codeInspection/NullityInferenceFromSourceTestCase.groovy index ee1dd84c7e4e..ec897f29a759 100644 --- a/java/java-tests/testSrc/com/intellij/codeInspection/NullityInferenceFromSourceTestCase.groovy +++ b/java/java-tests/testSrc/com/intellij/codeInspection/NullityInferenceFromSourceTestCase.groovy @@ -68,7 +68,7 @@ String bar() { return "z"; } } void "test delegation to nullable means nothing"() { - assert inferNullity(parse('String foo() { return bar(); }; String bar() { if (equals(2)) return null; return "a"; }; ')) == UNKNOWN + assert inferNullity(parse('String foo() { return bar("2"); }; String bar(String s) { if (s != "2") return null; return "a"; }; ')) == UNKNOWN } void "test return boxed boolean constant"() {