mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-26 19:06:24 +07:00
reassign on introduce variable: ensure renamed; tests
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
class C {
|
||||
{
|
||||
String s;
|
||||
System.out.println("<caret>");
|
||||
}
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
class C {
|
||||
{
|
||||
String s;
|
||||
s = "";
|
||||
System.out.println(s);
|
||||
}
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
class C {
|
||||
{
|
||||
String strA = "bar";
|
||||
if (true
|
||||
) System.out.println("<caret>");
|
||||
}
|
||||
}
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
class C {
|
||||
{
|
||||
String strA = "bar";
|
||||
if (true
|
||||
) {
|
||||
strA = "";
|
||||
System.out.println(strA);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user