Files
openide/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/convert2Local/afterAssignmentAndFinalByDefault.java
Bart van Helvert 57b3e68b1b [java-inspections] IDEA-298539 Fix parameter can be local quick-fix undo
Also makes it so refactoring isn't called in write action and won't cause deadlocks.

GitOrigin-RevId: 204fd9f9a0b2e942b1c9eb56b3d9938b2666d123
2022-07-29 14:24:01 +00:00

14 lines
227 B
Java

// "Convert field to local variable in method 'getFoo1'" "true-preview"
class Test {
int getFoo1(boolean f) {
int myFoo;
if (f) {
myFoo = 1;
}
else {
myFoo = 2;
}
return myFoo;
}
}