mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-21 13:20:56 +07:00
31 lines
747 B
Java
31 lines
747 B
Java
import org.jetbrains.annotations.Nullable;
|
|
|
|
class DeclaredOutputVariable {
|
|
void foo(String[] a, int j) {
|
|
|
|
String s = newMethod(a[j], 1, "X");
|
|
if (s == null) return;
|
|
|
|
System.out.println(s.length());
|
|
}
|
|
|
|
@Nullable
|
|
private String newMethod(String s1, int i, String x) {
|
|
String s = s1;
|
|
if (s == null) return null;
|
|
System.out.println(s.charAt(i) + x);
|
|
return s;
|
|
}
|
|
|
|
void bar(String[] a, int k) {
|
|
String s = newMethod(a[k], 2, "Y");
|
|
if (s == null) return;
|
|
System.out.println(s.length());
|
|
}
|
|
|
|
void bar(String[] a, int n) {
|
|
String s = newMethod(a[n], 1, "Z");
|
|
if (s == null) return;
|
|
System.out.println(s.length());
|
|
}
|
|
} |