mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-19 04:51:24 +07:00
convert field to local: preserve comments
This commit is contained in:
@@ -117,7 +117,7 @@ public abstract class BaseConvertToLocalQuickFix<V extends PsiVariable> implemen
|
||||
variable,
|
||||
refsSet,
|
||||
delete,
|
||||
declaration -> anchor.replace(declaration)
|
||||
declaration -> new CommentTracker().replaceAndRestoreComments(anchor, declaration)
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
class Test {
|
||||
|
||||
int getFoo1() {
|
||||
//c1
|
||||
int myFoo = 1;
|
||||
return myFoo;
|
||||
}
|
||||
|
||||
@@ -3,7 +3,8 @@ class Test {
|
||||
private int my<caret>Foo;
|
||||
|
||||
int getFoo1() {
|
||||
myFoo = 1;
|
||||
myFoo//c1
|
||||
= 1;
|
||||
return myFoo;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user