@@ -326,20 +326,20 @@ private Swagger read(Class<?> cls, String parentPath, String parentMethod, boole
326
326
327
327
String [] apiConsumes = consumes ;
328
328
if (parentConsumes != null ) {
329
- Set <String > both = new HashSet <String >(Arrays .asList (apiConsumes ));
330
- both .addAll (new HashSet <String >(Arrays .asList (parentConsumes )));
329
+ Set <String > both = new LinkedHashSet <String >(Arrays .asList (apiConsumes ));
330
+ both .addAll (new LinkedHashSet <String >(Arrays .asList (parentConsumes )));
331
331
if (operation .getConsumes () != null ) {
332
- both .addAll (new HashSet <String >(operation .getConsumes ()));
332
+ both .addAll (new LinkedHashSet <String >(operation .getConsumes ()));
333
333
}
334
334
apiConsumes = both .toArray (new String [both .size ()]);
335
335
}
336
336
337
337
String [] apiProduces = produces ;
338
338
if (parentProduces != null ) {
339
- Set <String > both = new HashSet <String >(Arrays .asList (apiProduces ));
340
- both .addAll (new HashSet <String >(Arrays .asList (parentProduces )));
339
+ Set <String > both = new LinkedHashSet <String >(Arrays .asList (apiProduces ));
340
+ both .addAll (new LinkedHashSet <String >(Arrays .asList (parentProduces )));
341
341
if (operation .getProduces () != null ) {
342
- both .addAll (new HashSet <String >(operation .getProduces ()));
342
+ both .addAll (new LinkedHashSet <String >(operation .getProduces ()));
343
343
}
344
344
apiProduces = both .toArray (new String [both .size ()]);
345
345
}
@@ -905,9 +905,9 @@ private Operation parseMethod(Class<?> cls, Method method, List<Parameter> globa
905
905
Response response = new Response ().description (SUCCESSFUL_OPERATION );
906
906
operation .defaultResponse (response );
907
907
}
908
-
908
+
909
909
processOperationDecorator (operation , method );
910
-
910
+
911
911
return operation ;
912
912
}
913
913
0 commit comments