Fix AnnotationDirectoryPool comparisons

This commit is contained in:
Ben Gruver 2012-12-29 23:05:54 -08:00
parent db5d398850
commit e29142d406

View File

@ -266,7 +266,7 @@ public class AnnotationDirectoryPool {
public int compareTo(Key o) {
// compareTo will only be called on keys of the same internability. An internable key will not be compared
// with a non-internable one.
if (hasClassAnnotations()) {
if (hasNonClassAnnotations()) {
return classDef.getType().compareTo(o.classDef.getType());
}
return CollectionUtils.compareAsSet(classDef.getAnnotations(), o.classDef.getAnnotations());