extract method: prepare method body to have @Nullable/@NotNull before actual extract is performed

This commit is contained in:
Anna Kozlova
2014-12-01 18:00:34 +01:00
parent 08a7e5b8bf
commit 9fc8b39236
5 changed files with 152 additions and 108 deletions
@@ -1,4 +1,4 @@
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
class Test {
void foo() {
@@ -11,7 +11,7 @@ class Test {
}
}
@NotNull
@Nullable
private String newMethod() {
final String str = "";
if (str == "") {