forked from openkylin/platform_build
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:
parent
45bf3d2424
commit
5496ad284d
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue