mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
extract method: check @Nullable availability in the extracted method scope (e.g. attached to another module only)
This commit is contained in:
+1
-1
@@ -637,7 +637,7 @@ public class ExtractMethodProcessor implements MatchProvider {
|
||||
prepareMethodBody(emptyMethod, false);
|
||||
final NullableNotNullManager manager = NullableNotNullManager.getInstance(myProject);
|
||||
final PsiClass nullableAnnotationClass = JavaPsiFacade.getInstance(myProject)
|
||||
.findClass(manager.getDefaultNullable(), GlobalSearchScope.allScope(myProject));
|
||||
.findClass(manager.getDefaultNullable(), myElements[0].getResolveScope());
|
||||
if (nullableAnnotationClass != null) {
|
||||
if (myNotNullConditionalCheck || myNullConditionalCheck) {
|
||||
return Nullness.NULLABLE;
|
||||
|
||||
Reference in New Issue
Block a user