mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-31 04:07:30 +07:00
GitOrigin-RevId: 3aae5c738d48c38144f6a78c36738121831ae5a5
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());
|
|
}
|
|
} |