summaryrefslogtreecommitdiffstats
path: root/tools/apicheck/src
diff options
context:
space:
mode:
authorJoshua Bloch <jjb@google.com>2009-08-27 14:43:03 -0700
committerJoshua Bloch <jjb@google.com>2009-08-27 14:43:03 -0700
commit855003deb7f492f8adb0a728d1268b3f9cb2c05a (patch)
tree0e803f7e30c7b46cabdf4e5d4622b33380fbcae7 /tools/apicheck/src
parentebb71b4ebba8f1af4eedb984970c2551235ac1b2 (diff)
downloadbuild-855003deb7f492f8adb0a728d1268b3f9cb2c05a.zip
build-855003deb7f492f8adb0a728d1268b3f9cb2c05a.tar.gz
build-855003deb7f492f8adb0a728d1268b3f9cb2c05a.tar.bz2
Making Droiddoc not explode when inherited interfaces disappear.
Diffstat (limited to 'tools/apicheck/src')
-rw-r--r--tools/apicheck/src/com/android/apicheck/ClassInfo.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/apicheck/src/com/android/apicheck/ClassInfo.java b/tools/apicheck/src/com/android/apicheck/ClassInfo.java
index 5405ad2..d4416f4 100644
--- a/tools/apicheck/src/com/android/apicheck/ClassInfo.java
+++ b/tools/apicheck/src/com/android/apicheck/ClassInfo.java
@@ -121,7 +121,11 @@ public class ClassInfo {
consistent = false;
}
for (String iface : mInterfaces) {
- if (!cl.mInterfaces.contains(iface)) {
+ boolean found = false;
+ for (ClassInfo c = cl; c != null && !found; c = c.mSuperClass) {
+ found = c.mInterfaces.contains(iface);
+ }
+ if (!found) {
Errors.error(Errors.REMOVED_INTERFACE, cl.position(),
"Class " + qualifiedName() + " no longer implements " + iface);
}