blob: 31b6e065665ba1025339c8d1902f8b608221f41c [file] [log] [blame]
// !SPECIFY_LOCAL_VARIABLE_TYPE_BY_DEFAULT: true
package test;
import org.jetbrains.annotations.Nullable;
public class Test {
@Nullable String myStr = "String2";
public Test(@Nullable String str) {
myStr = str;
}
public void sout(@Nullable String str) {
System.out.println(str);
}
@Nullable
public String dummy(@Nullable String str) {
return str;
}
public void test() {
sout("String");
@Nullable String test = "String2";
sout(test);
sout(dummy(test));
new Test(test);
}
}