summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/main/java/com/kitfox/svg/animation/TrackManager.java8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/main/java/com/kitfox/svg/animation/TrackManager.java b/src/main/java/com/kitfox/svg/animation/TrackManager.java
index b8e6305..0e9daa0 100644
--- a/src/main/java/com/kitfox/svg/animation/TrackManager.java
+++ b/src/main/java/com/kitfox/svg/animation/TrackManager.java
@@ -59,7 +59,13 @@ public class TrackManager implements Serializable
this.type = type;
}
- public int hashCode() { return name.hashCode() ^ type; }
+ public int hashCode()
+ {
+ int hash = name == null ? 0 : name.hashCode();
+ hash = hash * 97 + type;
+ return hash;
+ }
+
public boolean equals(Object obj)
{
if (!(obj instanceof TrackKey)) return false;