Making Droiddoc not explode when inherited interfaces disappear.

This commit is contained in:
Joshua Bloch 2009-08-27 14:43:03 -07:00
parent ebb71b4ebb
commit 855003deb7
1 changed files with 5 additions and 1 deletions

View File

@ -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);
}