Files
Rustam Vishnyakovandintellij-monorepo-bot 123242c4b2 EditorConfig documentation test
GitOrigin-RevId: fd52ace3d7a32ecd02c2c5ab90e077967604c15e
2019-06-16 04:03:21 +03:00

16 lines
396 B
Java

/*
Value is always false (s == null; line#14)
's' was assigned (=; line#13)
One of the following happens:
Expression cannot be null as it's literal ("foo"; line#13)
or expression cannot be null as it's literal ("bar"; line#13)
*/
import java.util.List;
class Test {
void test(boolean b) {
String s = b ? "foo" : "bar";
if (<selection>s == null</selection>) {}
}
}