Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5496ad28 authored by Mike Hearn's avatar Mike Hearn
Browse files

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.
parent 45bf3d24
Loading
Loading
Loading
Loading
+2 −10
Original line number Diff line number Diff line
@@ -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()