Skip to content

Commit

Permalink
Avoid using method introduced in Java 8.
Browse files Browse the repository at this point in the history
  • Loading branch information
raphw committed Nov 8, 2023
1 parent b1ccf7a commit 9d99167
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,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 describe(type[index], new TypeDescription.Generic.AnnotationReader.Delegator.ForLoadedExecutableExceptionType(method, index))
Expand Down

0 comments on commit 9d99167

Please sign in to comment.