mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
extract method: annotate newly created method @Nullable when applicable (IDEA-76767)
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
class Test {
|
||||
Object foo() {
|
||||
Object o = newMethod();
|
||||
@@ -6,6 +8,7 @@ class Test {
|
||||
return o;
|
||||
}
|
||||
|
||||
@Nullable
|
||||
private Object newMethod() {
|
||||
Object o = "";
|
||||
for (int i = 0; i < 5; i++) {
|
||||
|
||||
Reference in New Issue
Block a user