Just had a look into the code. The Comparator is needed for getAnnotatedFields() in order to return the fields in a deterministic order.