mirror of
https://github.com/processing/processing4.git
synced 2026-02-03 21:59:20 +01:00
better toString() for debugging
This commit is contained in:
@@ -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());
|
||||
}
|
||||
|
||||
|
||||
// . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user