From bd0bbb57afd8410a2ea5191f4c19d00667416744 Mon Sep 17 00:00:00 2001 From: Ben Fry Date: Thu, 20 Jan 2022 10:40:53 -0500 Subject: [PATCH] better toString() for debugging --- app/src/processing/app/contrib/Contribution.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/app/src/processing/app/contrib/Contribution.java b/app/src/processing/app/contrib/Contribution.java index 9744e3fb5..52012ee9f 100644 --- a/app/src/processing/app/contrib/Contribution.java +++ b/app/src/processing/app/contrib/Contribution.java @@ -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()); + } + + // . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .