allow to override wrong annotation

This commit is contained in:
anna
2012-07-12 15:21:04 +02:00
parent 0f2c21ee90
commit 7828881988
@@ -358,7 +358,7 @@ public class NullableStuffInspection extends BaseLocalInspectionTool {
if (!methodQuickFixSuggested
&& annotated.isDeclaredNotNull
&& !nullableManager.isNotNull(overriding, false)
&& !nullableManager.isNullable(overriding, true)) {
&& (nullableManager.isNullable(overriding, false) || !nullableManager.isNullable(overriding, true))) {
method.getNameIdentifier(); //load tree
PsiAnnotation annotation = AnnotationUtil.findAnnotation(method, nullableManager.getNotNulls());
final String defaultNotNull = nullableManager.getDefaultNotNull();