Files
openide/java/java-tests/testData/refactoring/inlineLocal/SeparateInitialization4.java.after
Tagir Valeev b01ac55564 [java-refactoring] Inline variable on non-initialized declaration
Could be available if there's only one write visible for all the reads
Fixes IDEA-354157 Inline variable not working when staying on uninitialized declaration

GitOrigin-RevId: e257b2b493a3902e901699efa4eac90f62e3108b
2024-09-02 21:01:25 +00:00

10 lines
187 B
Plaintext

public class Main {
public static void main(String[] args) {
String aaa;
if (args.length > 0) {
System.out.println(args[0]);
} else {
aaa = "oops";
}
}
}