mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-08 23:39:39 +07:00
NullableNotNullManager#getNullability created and used
This commit is contained in:
@@ -775,8 +775,9 @@ public class NullableStuffInspectionBase extends AbstractBaseJavaLocalInspection
|
||||
fix);
|
||||
}
|
||||
if (isNotNullParameterOverridingNonAnnotated(nullableManager, parameter, superParameters)) {
|
||||
PsiAnnotation notNullAnnotation = nullableManager.getNotNullAnnotation(parameter, false);
|
||||
assert notNullAnnotation != null;
|
||||
NullabilityAnnotationInfo info = nullableManager.findOwnNullabilityAnnotationInfo(parameter);
|
||||
assert info != null;
|
||||
PsiAnnotation notNullAnnotation = info.getAnnotation();
|
||||
boolean physical = PsiTreeUtil.isAncestor(parameter, notNullAnnotation, true);
|
||||
final LocalQuickFix fix = physical ? new RemoveAnnotationQuickFix(notNullAnnotation, parameter) : null;
|
||||
holder.registerProblem(physical ? notNullAnnotation : parameter.getNameIdentifier(),
|
||||
|
||||
Reference in New Issue
Block a user