if ( mergeInheritedFields( tDescr ) ) {
//descriptor also needs metadata from superclass
Iterator<AbstractClassTypeDeclarationDescr> iter = sortedTypeDescriptors.iterator();
while ( iter.hasNext() ) {
// sortedTypeDescriptors are sorted by inheritance order, so we'll always find the superClass (if any) before the subclass
AbstractClassTypeDeclarationDescr descr = iter.next();
if ( qname.equals( descr.getType() ) ) {
typeDescr.getAnnotations().putAll( descr.getAnnotations() );
break;
} else if ( typeDescr.getType().equals( descr.getType() ) ) {
break;
}
}
}
}