if (type.getAnnotation(JoddJson.jsonAnnotation) != null) {
// current type has annotation, dont find anything, let type data be created
return null;
}
ClassDescriptor cd = ClassIntrospector.lookup(type);
// lookup superclasses
Class[] superClasses = cd.getAllSuperclasses();
for (Class superClass : superClasses) {
if (superClass.getAnnotation(JoddJson.jsonAnnotation) != null) {
// annotated subclass founded!
return _lookupTypeData(superClass);
}
}
Class[] interfaces = cd.getAllInterfaces();
for (Class interfaze : interfaces) {
if (interfaze.getAnnotation(JoddJson.jsonAnnotation) != null) {
// annotated subclass founded!
return _lookupTypeData(interfaze);