mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-30 18:28:55 +07:00
MoveFieldAssignmentToInitializerFix: keep comments when removing empty initializer
Fixes IDEA-187524 "Move assignment to field declaration" loses comment on class initializer
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
// "Move assignment to field declaration" "true"
|
||||
public class X {
|
||||
int i = 0;
|
||||
|
||||
// comment
|
||||
}
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
// "Move assignment to field declaration" "true"
|
||||
public class X {
|
||||
int i;
|
||||
|
||||
// comment
|
||||
{
|
||||
(<caret>i)=0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user