Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -375,6 +375,16 @@ public OpenAPI read(Class<?> cls,

// iterate class methods
Method methods[] = cls.getMethods();
// sort methods to make api generations reproducible
Arrays.sort(methods,new Comparator<Method>() {
@Override
public int compare(Method method1, Method method2) {
if (method1.equals(method2)) {
return 0;
}
return method1.getName().compareTo(method2.getName());
}
});
for (Method method : methods) {
if (isOperationHidden(method)) {
continue;
Expand Down