mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
IDEA-139301 "Constant conditions & exceptions" flaggs nullable expression when implementing a method returning void
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
class Example {
|
||||
void foo() {
|
||||
Runnable runnable = () -> bar();
|
||||
}
|
||||
|
||||
@Nullable
|
||||
String bar() {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
@@ -77,6 +77,7 @@ public class DataFlowInspection8Test extends LightCodeInsightFixtureTestCase {
|
||||
}
|
||||
|
||||
public void testMethodReferenceOnNullable() { doTest(); }
|
||||
public void testNullableVoidLambda() { doTest(); }
|
||||
|
||||
public void testNullableForeachVariable() {
|
||||
setupCustomAnnotations();
|
||||
|
||||
Reference in New Issue
Block a user