mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-17 07:20:53 +07:00
26 lines
532 B
Java
26 lines
532 B
Java
import java.util.List;
|
|
|
|
class DeclaredOutputVariable {
|
|
void foo(List<String> a) {
|
|
|
|
if (newMethod(a)) return;
|
|
String s;
|
|
|
|
s = "";
|
|
System.out.println(s.length());
|
|
}
|
|
|
|
private boolean newMethod(List<String> a) {
|
|
String s = a.get(1);
|
|
if (s == null) return true;
|
|
System.out.println(s.charAt(1));
|
|
return false;
|
|
}
|
|
|
|
void bar(List<String> a) {
|
|
if (newMethod(a)) return;
|
|
String s;
|
|
s = "";
|
|
System.out.println(s.length());
|
|
}
|
|
} |