mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-26 19:06:24 +07:00
extract method: use target class context to check nullability
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
class X {
|
||||
public static String main(String[] args) {
|
||||
return newMethod();
|
||||
|
||||
}
|
||||
|
||||
@NotNull
|
||||
private static String newMethod() {
|
||||
System.out.println();
|
||||
return f();
|
||||
}
|
||||
|
||||
@NotNull
|
||||
String f() {
|
||||
return "";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user