mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-02-11 00:06:57 +07:00
Also makes it so refactoring isn't called in write action and won't cause deadlocks. GitOrigin-RevId: 204fd9f9a0b2e942b1c9eb56b3d9938b2666d123
22 lines
398 B
Java
22 lines
398 B
Java
// "Convert field to local variable in method 'someMethod'" "true-preview"
|
|
class TestFieldConversion
|
|
{
|
|
|
|
public void someMethod(int s) {
|
|
/**
|
|
* doc1
|
|
*/
|
|
int someInt = 0;
|
|
switch (s) {
|
|
case 1:
|
|
System.out.println(someInt);
|
|
break;
|
|
case 3:
|
|
System.out.println(someInt);
|
|
break;
|
|
default:
|
|
break;
|
|
}
|
|
}
|
|
}
|