Skip to content
Open
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 @@ -27,6 +27,8 @@
import java.lang.reflect.Method;
import java.lang.reflect.Modifier;
import java.net.URL;
import java.util.Arrays;
import java.util.Comparator;
import java.util.Map;
import java.util.Set;

Expand Down Expand Up @@ -449,6 +451,12 @@ public static String getSimpleMethodSignature(Method method, boolean withModifie

if (withExceptionType) {
Class<?>[] exceptionTypes = method.getExceptionTypes();
Arrays.sort(exceptionTypes, new Comparator<Class<?>>() {
@Override
public int compare(Class<?> self, Class<?> other) {
return self.getName().compareTo(other.getName());
}
});

if (!isEmptyArray(exceptionTypes)) {
buf.append(" throws ");
Expand Down