mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
IDEA-82125: do not override @Nullable with @NotNull in complex hierarchies
This commit is contained in:
+2
-1
@@ -357,7 +357,8 @@ public class NullableStuffInspection extends BaseLocalInspectionTool {
|
||||
if (!manager.isInProject(overriding)) continue;
|
||||
if (!methodQuickFixSuggested
|
||||
&& annotated.isDeclaredNotNull
|
||||
&& !nullableManager.isNotNull(overriding, false)) {
|
||||
&& !nullableManager.isNotNull(overriding, false)
|
||||
&& !nullableManager.isNullable(overriding, true)) {
|
||||
method.getNameIdentifier(); //load tree
|
||||
PsiAnnotation annotation = AnnotationUtil.findAnnotation(method, nullableManager.getNotNulls());
|
||||
final String defaultNotNull = nullableManager.getDefaultNotNull();
|
||||
|
||||
Reference in New Issue
Block a user