reassign on introduce variable: ensure renamed; tests

This commit is contained in:
Anna Kozlova
2015-01-15 21:10:47 +01:00
parent 111f487f7e
commit 7fbbc52ed6
6 changed files with 108 additions and 12 deletions
@@ -0,0 +1,6 @@
class C {
{
String s;
System.out.println("<caret>");
}
}
@@ -0,0 +1,7 @@
class C {
{
String s;
s = "";
System.out.println(s);
}
}
@@ -0,0 +1,7 @@
class C {
{
String strA = "bar";
if (true
) System.out.println("<caret>");
}
}
@@ -0,0 +1,10 @@
class C {
{
String strA = "bar";
if (true
) {
strA = "";
System.out.println(strA);
}
}
}