From 5496ad284d1b78b43d5ac8fd6528cd719ebd7908 Mon Sep 17 00:00:00 2001 From: Mike Hearn Date: Wed, 14 Jan 2009 17:27:57 +0100 Subject: [PATCH] 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. --- tools/droiddoc/src/ClassInfo.java | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/tools/droiddoc/src/ClassInfo.java b/tools/droiddoc/src/ClassInfo.java index 36edbf801b..2a792c5eac 100644 --- a/tools/droiddoc/src/ClassInfo.java +++ b/tools/droiddoc/src/ClassInfo.java @@ -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()