Calling method with contract shouldn't result in nullability suspicion (IDEA-113763, IDEA-113699, almost IDEA-113143)

This commit is contained in:
peter
2013-09-19 18:32:08 +02:00
parent f2a563b9f8
commit 340cf22371
8 changed files with 105 additions and 2 deletions
@@ -0,0 +1,19 @@
import org.jetbrains.annotations.Contract;
import org.jetbrains.annotations.NotNull;
public class Foo {
@Contract("null->null")
String foo(String s){
return s;
}
void bar(String s, String s2) {
foo(s);
s.hashCode();
goo(foo(s2));
}
void goo(@NotNull String s) {}
}