mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-07-21 18:25:02 +07:00
22 lines
406 B
Java
22 lines
406 B
Java
import org.jetbrains.annotations.Nullable;
|
|
|
|
class Test {
|
|
void foo() {
|
|
final String str = newMethod();
|
|
if (str == null) return;
|
|
new Runnable() {
|
|
public void run() {
|
|
System.out.println(str);
|
|
}
|
|
}
|
|
}
|
|
|
|
@Nullable
|
|
private String newMethod() {
|
|
final String str = "";
|
|
if (str == "a") {
|
|
return null;
|
|
}
|
|
return str;
|
|
}
|
|
} |