@@ -945,35 +945,6 @@ private static Set<Scheme> parseSchemes(String schemes) {
945945 return result ;
946946 }
947947
948- public String extractOperationMethod (ApiOperation apiOperation , Method method , Iterator <SwaggerExtension > chain ) {
949- if (apiOperation != null && apiOperation .httpMethod () != null && !"" .equals (apiOperation .httpMethod ())) {
950- return apiOperation .httpMethod ().toLowerCase ();
951- } else if (method .getAnnotation (javax .ws .rs .GET .class ) != null ) {
952- return "get" ;
953- } else if (method .getAnnotation (javax .ws .rs .PUT .class ) != null ) {
954- return "put" ;
955- } else if (method .getAnnotation (javax .ws .rs .POST .class ) != null ) {
956- return "post" ;
957- } else if (method .getAnnotation (javax .ws .rs .DELETE .class ) != null ) {
958- return "delete" ;
959- } else if (method .getAnnotation (javax .ws .rs .OPTIONS .class ) != null ) {
960- return "options" ;
961- } else if (method .getAnnotation (javax .ws .rs .HEAD .class ) != null ) {
962- return "head" ;
963- } else if (method .getAnnotation (PATCH .class ) != null ) {
964- return "patch" ;
965- } else if (method .getAnnotation (HttpMethod .class ) != null ) {
966- HttpMethod httpMethod = (HttpMethod ) method .getAnnotation (HttpMethod .class );
967- return httpMethod .value ().toLowerCase ();
968- } else if ((ReflectionUtils .getOverriddenMethod (method )) != null ) {
969- return extractOperationMethod (apiOperation , ReflectionUtils .getOverriddenMethod (method ), chain );
970- } else if (chain .hasNext ()) {
971- return chain .next ().extractOperationMethod (apiOperation , method , chain );
972- } else {
973- return null ;
974- }
975- }
976-
977948 private void appendModels (Type type ) {
978949 final Map <String , Model > models = ModelConverters .getInstance ().readAll (type );
979950 for (Map .Entry <String , Model > entry : models .entrySet ()) {
0 commit comments