extract method: annotate newly created method @Nullable when applicable (IDEA-76767)

This commit is contained in:
Anna Kozlova
2014-11-27 19:14:03 +01:00
parent 90456f2029
commit c28dee1968
10 changed files with 71 additions and 8 deletions
@@ -1,3 +1,5 @@
import org.jetbrains.annotations.Nullable;
class Test {
void foo() {
Object o = newMethod();
@@ -5,6 +7,7 @@ class Test {
System.out.println(o);
}
@Nullable
private Object newMethod() {
Object o = "";
for (int i = 0; i < 5; i++) {