public Swagger read ( Class < ? > cls ) { SwaggerDefinition swaggerDefinition = cls . getAnnotation ( SwaggerDefinition . class ) ; if ( swaggerDefinition != null ) { readSwaggerConfig ( cls , swaggerDefinition ) ; } return read ( cls , "" , null , false , new String [ 0 ] , new String [ 0 ] , new LinkedHashMap <> ( ) , new ArrayList <> ( ) , new HashSet <> ( ) ) ; }
Scans a single class for Swagger annotations - does not invoke ReaderListeners