Skip to content

Commit

Permalink
Avoid modern API.
Browse files Browse the repository at this point in the history
  • Loading branch information
raphw committed Nov 19, 2023
1 parent bba2d6b commit c142fa0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ protected TypeDescription.Generic describeExceptionType(Method method, int index
Type[] type = method.getGenericExceptionTypes();
Arrays.sort(type, new Comparator<Type>() {
public int compare(Type left, Type right) {
return left.getTypeName().compareTo(right.getTypeName());
return left.toString().compareTo(right.toString());
}
});
return TypeDefinition.Sort.describe(type[index],
Expand Down

0 comments on commit c142fa0

Please sign in to comment.