Skip to content

Swagger2.0 integration have issue for annotation in interface  #1071

Open
@andyxf1029

Description

@andyxf1029
public static List<Class> getAllResources(Application application,
        List<Class> resources) {
    List allResources = new ArrayList();
    Iterator i$;
    if (application != null) {
        if (application.getClasses() != null) {
            allResources.addAll(application.getClasses());  // here use class , not interface  
        }
        if (application.getSingletons() != null) {
            for (i$ = application.getSingletons().iterator(); i$.hasNext();) {
                Object singleton = i$.next();
                if (singleton != null) {
                    allResources.add(singleton.getClass());
                }
            }
        }
    }
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions