mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
nullity: skip assert statements for local vars - should be possible to detect from usages; use in prams nullification (IDEA-60705)
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
class Test {
|
||||
@NotNull
|
||||
public String noNull(@NotNull String text) {
|
||||
assert text != null;
|
||||
return "";
|
||||
}
|
||||
|
||||
private void foo() {
|
||||
@NotNull String str = "";
|
||||
assert str != null;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user