blob: 587217b0eba69b2dd9eae913761b0a0ca3f0ec3c [file] [log] [blame]
import org.jetbrains.annotations.*;
class Test {
void bar(@Nullable String str) {
if (str == null) {
foo(str);
}
}
String foo(String str) {
return str;
}
@Nullable
String foo1(@Nullable String str) {
if (str == null) return "null";
return (str);
}
@Nullable
String foo2(@Nullable String str) {
if (str == null) return "null";
return ((String)str);
}
@Nullable
String fram(@Nullable String str, boolean b) {
if (str != null) {
return b ? str : "not null strimg";
}
return "str was null";
}
}