mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 14:23:28 +07:00
21 lines
399 B
Java
21 lines
399 B
Java
class Test {
|
|
Object foo() {
|
|
Object o = newMethod();
|
|
if (o == null) return null;
|
|
System.out.println(o);
|
|
return o;
|
|
}
|
|
|
|
private Object newMethod() {
|
|
Object o = "";
|
|
for (int i = 0; i < 5; i++) {
|
|
if (i == 10){
|
|
o = null;
|
|
}
|
|
}
|
|
if (o == null) {
|
|
return null;
|
|
}
|
|
return o;
|
|
}
|
|
} |