safe delete: do not change semantic on delete loop/if body (IDEA-114406)

This commit is contained in:
Anna Kozlova
2013-12-31 16:23:37 +01:00
parent e07f3b28f5
commit a8329a30c8
4 changed files with 32 additions and 1 deletions
@@ -0,0 +1,8 @@
class A {
void f(String p){
String <caret>t;
if (p == null)
t = "1";
System.out.println("");
}
}
@@ -0,0 +1,7 @@
class A {
void f(String p){
if (p == null)
;
System.out.println("");
}
}