mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
nullable problems (IDEA-93275)
This commit is contained in:
+1
-1
@@ -357,7 +357,7 @@ public class NullableStuffInspection extends BaseLocalInspectionTool {
|
||||
for (int i = 0; i < psiParameters.length; i++) {
|
||||
if (parameterQuickFixSuggested[i]) continue;
|
||||
PsiParameter parameter = psiParameters[i];
|
||||
if (parameterAnnotated[i] && !nullableManager.isNotNull(parameter, false)) {
|
||||
if (parameterAnnotated[i] && !nullableManager.isNotNull(parameter, false) && !nullableManager.isNullable(parameter, false)) {
|
||||
parameters[i].getNameIdentifier(); //be sure that corresponding tree element available
|
||||
PsiAnnotation annotation = AnnotationUtil.findAnnotation(parameters[i], nullableManager.getNotNulls());
|
||||
holder.registerProblem(annotation,
|
||||
|
||||
Reference in New Issue
Block a user