IDEA-175510 "Constant conditions & exceptions" inspection provides non-sensical quick fix in some cases

This commit is contained in:
peter
2017-07-07 17:13:12 +02:00
parent 4402e56003
commit 03ddb122a8
3 changed files with 16 additions and 0 deletions
@@ -0,0 +1,9 @@
import org.jetbrains.annotations.NotNull;
class Foo {
void main() {
foo(<warning descr="Argument '(String) null' might be null">(String) nu<caret>ll</warning>);
}
static void foo(@NotNull String s) {}
}