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:
Tagir Valeev
2018-03-09 19:40:08 +07:00
parent 2277a7ff01
commit a0923d48b8
3 changed files with 5 additions and 1 deletions

View File

@@ -1,4 +1,6 @@
// "Move assignment to field declaration" "true"
public class X {
int i = 0;
// comment
}

View File

@@ -1,6 +1,8 @@
// "Move assignment to field declaration" "true"
public class X {
int i;
// comment
{
(<caret>i)=0;
}