Don't walk the inheritance heirarchy looking for deprecated superclasses.

It makes no sense that a class would become deprecated because its superclass
became deprecated - this resulted in nonsensical deprecation warnings for
classes that weren't actually deprecated, like WebView, simply because they
inherited from something that was.
This commit is contained in:
Mike Hearn 2009-01-14 17:27:57 +01:00
parent 45bf3d2424
commit 5496ad284d
1 changed files with 2 additions and 10 deletions

View File

@ -378,16 +378,8 @@ public class ClassInfo extends DocInfo implements ContainerInfo, Comparable, Sco
public TagInfo[] deprecatedTags()
{
TagInfo[] result = comment().deprecatedTags();
if (result.length == 0) {
if (comment().undeprecateTags().length == 0) {
if (superclass() != null) {
result = superclass().deprecatedTags();
}
}
}
// should we also do the interfaces?
return result;
// Should we also do the interfaces?
return comment().deprecatedTags();
}
public MethodInfo[] methods()