better toString() for debugging

This commit is contained in:
Ben Fry
2022-01-20 10:40:53 -05:00
parent 1c481268f6
commit bd0bbb57af

View File

@@ -372,7 +372,7 @@ abstract public class Contribution {
if (o instanceof Contribution) {
Contribution that = (Contribution) o;
return name.toLowerCase().equals(that.name.toLowerCase());
return name.equalsIgnoreCase(that.name);
}
return false;
}
@@ -384,6 +384,12 @@ abstract public class Contribution {
}
@Override
public String toString() {
return getName() + " @" + Integer.toHexString(hashCode());
}
// . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .