nullity: initial tests

This commit is contained in:
anna
2010-09-06 12:07:26 +04:00
parent 58eae8963e
commit 0f1d1622f7
13 changed files with 466 additions and 4 deletions
@@ -0,0 +1,34 @@
import org.jetbrains.annotations.*;
class Test {
void bar(String str) {
if (str == null) {
foo(str);
}
}
String foo(String str) {
return str;
}
String foo1(String str) {
if (str == null);
return (str);
}
String foo2(String str) {
if (str == null);
return ((String)str);
}
String fram(String str, boolean b) {
if (str != null) {
return b ? str : "not null strimg";
}
return "str was null";
}
}