extract method: copy parameters annotations to the extracted method when applicable (IDEA-40617)

This commit is contained in:
Anna Kozlova
2014-12-01 20:54:13 +01:00
parent 900afda0d7
commit 4ea62b333e
4 changed files with 69 additions and 0 deletions
@@ -0,0 +1,21 @@
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
class X {
@NotNull
public X fun1(int x) {
return this;
}
public X fun2(@Nullable @SuppressWarnings("unused") String b) {
<selection>
if (b != null) {
int x = 1;
return fun1(x);
}
</selection>
int x = 0;
return null;
}
}