I've found 22 usages of Set<ClassInfo> directly in jandex classes org.jboss.jandex.Index and org.jboss.jandex.CompositeIndex. Given the fact that ClassInfo does not implement equals/hashCode it would make sense to refactor these classes, esp. the CompositeIndex where multiple ClassInfo instances representing the same java class may appear.