mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 14:23:28 +07:00
inplace introduce: append semicolon if needed (to avoid parsing assignment as local variable)
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
class Test {
|
||||
private String myTimer;
|
||||
|
||||
Test() {
|
||||
"<caret>"
|
||||
myTimer = "abc";
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
class Test {
|
||||
private String myTimer;
|
||||
|
||||
Test() {
|
||||
"<caret>"
|
||||
myTimer = "";
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
class Test {
|
||||
private Foo myFoo;
|
||||
|
||||
Test() {
|
||||
new Fo<caret>o()
|
||||
myFoo = new Foo();
|
||||
}
|
||||
}
|
||||
|
||||
class Foo{}
|
||||
@@ -0,0 +1,11 @@
|
||||
class Test {
|
||||
private Foo myFoo;
|
||||
private final Foo foo;
|
||||
|
||||
Test() {
|
||||
foo = new Foo();
|
||||
myFoo = foo;
|
||||
}
|
||||
}
|
||||
|
||||
class Foo{}
|
||||
@@ -0,0 +1,9 @@
|
||||
class Test {
|
||||
private String myTimer;
|
||||
private final String string;
|
||||
|
||||
Test() {
|
||||
string =<caret> "";
|
||||
myTimer = string;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
class Test {
|
||||
private String myTimer;
|
||||
private final String string;
|
||||
|
||||
Test() {
|
||||
string = "";
|
||||
myTimer = "abc";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user