equals fix

This commit is contained in:
Greg DiCristofaro 2020-09-23 15:36:25 -04:00
parent 867ac39684
commit b2318db855

View File

@ -311,7 +311,7 @@ final class DataSourceInfoUtilities {
@Override @Override
public int compare(BlackboardAttribute attribute1, BlackboardAttribute attribute2) { public int compare(BlackboardAttribute attribute1, BlackboardAttribute attribute2) {
if (attribute1.getAttributeType() != attribute2.getAttributeType()) { if (!attribute1.getAttributeType().equals(attribute2.getAttributeType())) {
throw new IllegalArgumentException("Unable to compare attributes of different types"); throw new IllegalArgumentException("Unable to compare attributes of different types");
} }