mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-09 16:39:37 +07:00
25 lines
517 B
Java
25 lines
517 B
Java
import org.jetbrains.annotations.Nullable;
|
|
|
|
class Test {
|
|
String foo(int i, boolean flag) {
|
|
|
|
String xxx = newMethod(i, flag);
|
|
if (xxx == null) return null;
|
|
|
|
System.out.println(xxx);
|
|
return null;
|
|
}
|
|
|
|
@Nullable
|
|
private String newMethod(int i, boolean flag) {
|
|
String xxx = "";
|
|
if (flag) {
|
|
for (int j = 0; j < 100; j++) {
|
|
if (i == j) {
|
|
return null;
|
|
}
|
|
}
|
|
}
|
|
return xxx;
|
|
}
|
|
} |