This commit is contained in:
anna
2011-04-07 19:56:50 +02:00
parent d012e5421f
commit 5fead14cc4
@@ -158,7 +158,11 @@ public class EmptyMethodInspection extends GlobalJavaInspectionTool {
if (!refMethod.isBodyEmpty()) {
return false;
}
if (AnnotationUtil.isAnnotated(refMethod.getElement(), EXCLUDE_ANNOS)) {
final PsiModifierListOwner owner = refMethod.getElement();
if (owner == null) {
return false;
}
if (AnnotationUtil.isAnnotated(owner, EXCLUDE_ANNOS)) {
return false;
}
for (final Object extension : Extensions.getExtensions(ExtensionPoints.EMPTY_METHOD_TOOL)) {