blob: db222a680117431517e0cd823aef9a1a15acc706 [file]
import java.util.List;
class DeclaredOutputVariable {
void foo(List<String> a) {
<selection>
String s = a.get(1);
if (s == null) return;
System.out.println(s.charAt(1));
</selection>
s = "";
System.out.println(s.length());
}
void bar(List<String> a) {
String s = a.get(1);
if (s == null) return;
System.out.println(s.charAt(1));
s = "";
System.out.println(s.length());
}
}