mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-25 10:51:25 +07:00
extract method: copy parameters annotations to the extracted method when applicable (IDEA-40617)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user